FilamentF
Filament3y ago
Arko

Conditionally show a dashboard page

return $panel
    ->pages([
        Pages\Dashboard::class,
    ]);

I only want to have certain user roles have a dashboard, but the user is not resolved yet in the panel's provider. Is there any way to just hide a dashboard via policies for example, just like how I can hide a resource for certain users?
Was this page helpful?