Roomdada
Missing required parameter for [Route: filament.admin.resources.insurers.view] [URI: admin/insurers/
Hello everyone,
I need your help to fix an issue. In my InsurerResource, I want to customize the parameter to uuid, but this doesn't work as expected. Below is the code I'm working with:
8 replies
Hide navigation
Filament::navigation(function (NavigationBuilder $builder): NavigationBuilder {
return $builder
->groups([
NavigationGroup::make('Administration')
->if (condition: fn () => auth()->user()->name === 'ASACI')
->items([
NavigationItem::make('Users', 'users')
->label('Utilisateurs')
->icon('heroicon-o-user-group')
->isActiveWhen(fn () => request()->is('admin/users'))
->visible(fn() => auth()->user()->name === 'ASACI')
->url('/admin/users'),
NavigationItem::make('log', 'log-viewer')
->label('Activités')
->icon('heroicon-o-clipboard-list')
->isActiveWhen(fn () => request()->is('admin/activities'))
->visible(fn() => auth()->user()->name === 'ASACI')
->url('/admin/activities'),
]),
]);
});
Hello everyone,
How to hide group browsing depending on the user logged in. Let's say the condition is based on his role. I really need help. Can anyone help me?
7 replies