2 questions about brandLogo

Hi, Is it possible to add a separate brandLogo for the login page and for the Sidebar / Topbar? Also if the logo is too big it overlaps the content below. What are the ways to solve this ?
Solution:
```php public function panel(Panel $panel): Panel { return $panel // ......
Jump to solution
2 Replies
Solution
awcodes
awcodes4w ago
public function panel(Panel $panel): Panel
{
return $panel
// ...
->brandLogo(fn () => view('filament.admin.logo'));
}
public function panel(Panel $panel): Panel
{
return $panel
// ...
->brandLogo(fn () => view('filament.admin.logo'));
}
then in the view:
@auth
@svg('panel-logo', 'h-8 w-8')
// or img tag with syles
@else
@svg('login-logo', 'h-12 w-auto lg:h-16 mb-6')
// or img tag with styles
@endif
@auth
@svg('panel-logo', 'h-8 w-8')
// or img tag with syles
@else
@svg('login-logo', 'h-12 w-auto lg:h-16 mb-6')
// or img tag with styles
@endif
JJSanders
JJSandersOP4w ago
Tnx @awcodes

Did you find this page helpful?