laravel-nova-permission
laravel-nova-permission copied to clipboard
Resource disappears
trafficstars
I have installed everything as instructed, create an Equipment Role and Assigned a permission named create equipment, then assigned it to the user who is logged in. When I add the following code to the
Equipment Resource
class Equipment extends Resource
{
use \Insenseanalytics\LaravelNovaPermission\PermissionsBasedAuthTrait;
public static $permissionsForAbilities = [
'create' => 'create equipment',
];
my resource disappears from the nav bar. Am I doing something wrong?
Thanks so much
@simona2017 you would also need to add the view permissions for you to be able to view the resource in the navbar. If you wish to grant all abilities to users who have the create equipment permission, you can use 'all' => 'create equipment'