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

Role relationship perms changed to permissions? #31

Closed
fulbert81 opened this issue Sep 23, 2016 · 1 comment
Closed

Role relationship perms changed to permissions? #31

fulbert81 opened this issue Sep 23, 2016 · 1 comment

Comments

@fulbert81
Copy link

I was using Entrust previously but I was getting issues after updating to Laravel 5.2 and changing vendor files to fix the issue doesn't sit well with me.

Anyway back to point, I am getting an error "Call to undefined method Illuminate\Database\Query\Builder::perms()'" when calling $role->perms(). Has the relationship model name been changed to permissions? In the documents for Soft-Deleting, the example code still makes a reference to $role->perms()->sync([]) though. Please advice.

@santigarcor
Copy link
Owner

Yeah, the role permission relationship was renamed to permissions

Thank you for pointing that, I have to change that in the docs

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

2 participants