menu item depending on user role or permission
How can i set a menu item only, if the user has a specific role?
I tried https://filamentphp.com/tricks/conditions-on-user-menu-items-based-on-roles
But cant get it running.
I installed in config/filament.php
`
I created
I have a Page in app/Filament/Pages/GitLog.php with
What to i have to put in app/Http/Middleware/UserMenuItemMiddleware.php please?
I want to show the page GitLog.php only when the user has role "Root".
I tried https://filamentphp.com/tricks/conditions-on-user-menu-items-based-on-roles
But cant get it running.
I installed in config/filament.php
`
I created
I have a Page in app/Filament/Pages/GitLog.php with
What to i have to put in app/Http/Middleware/UserMenuItemMiddleware.php please?
I want to show the page GitLog.php only when the user has role "Root".
Filament
Filament is a collection of tools for rapidly building beautiful TALL stack apps, designed for humans.