[v5.0.0-beta5] No logo when the topbar is disabled

I have disabled the topbar with ->topbar(false). Do I need some other configuration for it to work or it's just a bug?
No description
2 Replies
Krzysztof
KrzysztofOP7d ago
I was unable to reproduce the error on a fresh repository, but my problematic app has the following configuration:
class AppPanelProvider extends PanelProvider
{
public function panel(Panel $panel): Panel
{
return $panel
->default()
->id('app')
->path('')
->spa()
->login()
->topbar(false)
->registration(CustomRegister::class)
->emailVerification()
->passwordReset()
->emailChangeVerification()
->profile()
->viteTheme('resources/css/filament/app/theme.css')
->colors([
'primary' => Color::Blue,
])
->tenant(Company::class, 'uuid')
->tenantRoutePrefix('companies')
->tenantProfile(EditCompanyProfile::class)
->discoverResources(in: app_path('Filament/Resources'), for: 'App\Filament\Resources')
->discoverPages(in: app_path('Filament/Pages'), for: 'App\Filament\Pages')
->pages([
Dashboard::class,
])
->discoverWidgets(in: app_path('Filament/Widgets'), for: 'App\Filament\Widgets')
->widgets([
AccountWidget::class,
FilamentInfoWidget::class,
])
->middleware([
EncryptCookies::class,
AddQueuedCookiesToResponse::class,
StartSession::class,
AuthenticateSession::class,
ShareErrorsFromSession::class,
VerifyCsrfToken::class,
SubstituteBindings::class,
DisableBladeIconComponents::class,
DispatchServingFilamentEvent::class,
])
->authMiddleware([
Authenticate::class,
SetupMiddleware::class,
]);
}
}
class AppPanelProvider extends PanelProvider
{
public function panel(Panel $panel): Panel
{
return $panel
->default()
->id('app')
->path('')
->spa()
->login()
->topbar(false)
->registration(CustomRegister::class)
->emailVerification()
->passwordReset()
->emailChangeVerification()
->profile()
->viteTheme('resources/css/filament/app/theme.css')
->colors([
'primary' => Color::Blue,
])
->tenant(Company::class, 'uuid')
->tenantRoutePrefix('companies')
->tenantProfile(EditCompanyProfile::class)
->discoverResources(in: app_path('Filament/Resources'), for: 'App\Filament\Resources')
->discoverPages(in: app_path('Filament/Pages'), for: 'App\Filament\Pages')
->pages([
Dashboard::class,
])
->discoverWidgets(in: app_path('Filament/Widgets'), for: 'App\Filament\Widgets')
->widgets([
AccountWidget::class,
FilamentInfoWidget::class,
])
->middleware([
EncryptCookies::class,
AddQueuedCookiesToResponse::class,
StartSession::class,
AuthenticateSession::class,
ShareErrorsFromSession::class,
VerifyCsrfToken::class,
SubstituteBindings::class,
DisableBladeIconComponents::class,
DispatchServingFilamentEvent::class,
])
->authMiddleware([
Authenticate::class,
SetupMiddleware::class,
]);
}
}
all right guys, it was some nasty blade cache. I've added fully collapsible and removed it and now it wrks
trymedo
trymedo7d ago
Yeah, I've seen this too. Basically, if something doesn't work as expected in Filament, always clear your cache because the majority of things that I thought were bugs turned out to be exactly that 😅

Did you find this page helpful?