F
Filamentβ€’3mo ago
GavTheDev

Overwrite views from package

To overwrite Filament panel views (not recommended) we can copy files to resources/views/vendor/filament-panels/* and that works beautifully. However, I would like to overwrite the files from within a package. Is this possible? And if so, how?
5 Replies
toeknee
toekneeβ€’3mo ago
You shouldn't override any views or files from the package as per the docs. What are you doing that you want to override files.
GavTheDev
GavTheDevβ€’3mo ago
@toeknee I know, but I need to replace the whole topbar and see no other option other than copy files πŸ˜•
toeknee
toekneeβ€’3mo ago
Why? You could use CSS to hide it and render a new one with a hook
GavTheDev
GavTheDevβ€’3mo ago
I thought of that too so think I'm gonna do that. But it feels a bit dirty πŸ˜…
toeknee
toekneeβ€’3mo ago
Dirty but more stable than overriding view files and vendor files that will likely change, especially with V4 coming up.
Want results from more Discord servers?
Add your server