Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
progcode opened this issue Mar 12, 2020 · 3 comments
Open

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

progcode opened this issue Mar 12, 2020 · 3 comments

Comments

@progcode
Copy link

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

@m2de
Copy link
Contributor

m2de commented Mar 12, 2020

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?

@progcode
Copy link
Author

of course, I did everything based on the documentation

@Dontorpedo
Copy link

same :(

Laravel 7.x
Nova 3.x

yayann added a commit to SGS-Optimisation/novatoolpermissions that referenced this issue Jan 23, 2023
extract base64 img from content on create/update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants