How to use different logos for the login and the sidebar ?
When I set brandLogo in config it applies the same logo. I'd like to use two versions of the brand logo with differents size : one for the login page and one for the sidebar. Any idea? Thanks
Solution:Jump to solution
You can pass a closure to the
brandLogo
so I guess you should be able to differentiate between login page and other pages using request/url8 Replies
Solution
You can pass a closure to the
brandLogo
so I guess you should be able to differentiate between login page and other pages using request/urlOh yeah, something like that. Thanks
It's working
Hi @gausoft What was the code you used here? The attached file is a binary that I cannot view
You can customize any of the filament views by copying them into your resources folder. For example I am messing with the login page here:
You should be able to put different logos where ever you like via this method.
No need to override views. It’s generally not recommended.
Just create a regular view and tell the panel where to find it with
->brandLogo(fn () => view('filament.admin.logo'))
Then in the view you can do something like this:
My panel auth check looks like this. Tailor to your needs.
Neat 🙂 TIL. In my case I am doing other dark magic muahahahaha
Brill - thanks 🙂