Closed JonoB closed 4 years ago
From readme:
// in app/Providers/NovaServiceProvider.php
// ...
public function tools()
{
return [
// ...
\Vyuldashev\NovaPermission\NovaPermissionTool::make()
->roleResource(CustomRole::class)
->permissionResource(CustomPermission::class),
];
}```
Works now, thanks!
For the sake of correctness, it should refer to the Policies, and not the Resources:
public function tools()
{
return [
\Vyuldashev\NovaPermission\NovaPermissionTool::make()
->rolePolicy(RolePolicy::class)
->permissionPolicy(PermissionPolicy::class),
];
}
I'm trying to hide the Permissions and Roles from the sidebar using a policy, but it doesn't seem to be working for me
But the permissions are still shown in the Nova navigation. What am I missing?