novatoolpermissions icon indicating copy to clipboard operation
novatoolpermissions copied to clipboard

Call to undefined method App\User::hasRoleWithPermission()

Open progcode opened this issue 5 years ago • 3 comments

I got the following error after creating a new role:

Facade\Ignition\Exceptions\ViewException Call to undefined method App\User::hasRoleWithPermission() (View: /shared/httpd/tp/htdocs/nova/resources/views/layout.blade.php)

Laravel: 6.8.x Nova: 2.12.x

progcode avatar Mar 12 '20 09:03 progcode

Hi. Hard to say without seeing some code related to this but have you added the Silvanite\Brandenburg\Traits\HasRoles; trait to your User model?

m2de avatar Mar 12 '20 09:03 m2de

of course, I did everything based on the documentation

progcode avatar Mar 12 '20 19:03 progcode

same :(

Laravel 7.x Nova 3.x

Dontorpedo avatar Aug 28 '20 19:08 Dontorpedo