Mepha
Mepha
FFilament
Created by Mepha on 10/13/2024 in #❓┊help
Set custom page navigation as active without custom navigation
As the title suggest, I need to set navigation item to active without using isActiveWhen from registering custom navigation https://filamentphp.com/docs/3.x/panels/navigation#registering-custom-navigation-items
2 replies
FFilament
Created by Mepha on 10/13/2024 in #❓┊help
Allow view without view_any
So I have this user with view but without view_any in their role. I want them to be able access
/admin/books/1
/admin/books/1
but not
/admin/books
/admin/books
At BookResource/Pages/ViewBook I've tried adding
public static function canAccess(array $parameters = []): bool
{
return auth()->user()->can('view_book');
}
public static function canAccess(array $parameters = []): bool
{
return auth()->user()->can('view_book');
}
But no luck whatsoever
3 replies