Level 3
https://nova.laravel.com/docs/1.0/installation.html#authorizing-nova
In my case I used:
return $user->hasRole('admin');
Notice: APP_ENV should not be local to take effect
1 like
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I'm using https://novapackages.com/packages/vyuldashev/nova-permission for permissions & roles. I cannot figure it out: How can I allow access to nova only for certain roles?
https://nova.laravel.com/docs/1.0/installation.html#authorizing-nova
In my case I used:
return $user->hasRole('admin');
Notice: APP_ENV should not be local to take effect
Please or to participate in this conversation.