Silvanite / novatoolpermissions

Laravel Nova Permissions Tool (User, Roles and Permissions / Access Control (ACL))
MIT License
101 stars 33 forks source link

Error: Call to undefined method Silvanite\Brandenburg\Role::uriKey() #8

Closed tobz-nz closed 6 years ago

tobz-nz commented 6 years ago

I'm getting the error Call to undefined method Silvanite\Brandenburg\Role::uriKey() on the user resource page - for the call to /nova-api/users?search=&filters=&orderBy=&orderByDirection=desc&perPage=25&trashed=&page=1&viaResource=&viaResourceId=&viaRelationship=&relationshipType=.

Breaks the page.

tobz-nz commented 6 years ago

Aha, I had imported the wrong Role class for the user fields.

m2de commented 6 years ago

No worries, glad you’re up and running!

mjlandicho commented 5 years ago

how can i call data from Role model into my metric? I mean, I want to show in metric if how many admins, users.