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
Rename method "can", because of this throw Exception of collision traits. #371
Comments
It started with Laravel 5.1.11 and the authorization support. |
I had the same trouble... finally fixed it by using
|
@bobo52310 |
@bobo52310 Thanks Man. It solved the problem |
Ok but taking into account Entrust is a Laravel Package it seems to me a good idea to change method name can in Entrust |
Same problem here! |
I use Roman Bican's roles/permissions package. Over there I have suggested renaming |
Thanks @bobo52310. Looks like a good idea @ChristopherBurton to rename to |
@bobo52310 万分感谢,这个问题困惑了我好几天,现在终于解决了 |
@bobo52310 |
Thanks @bobo52310 It worked but Auth::logout stopped working. Any ideas on how to fix that? |
@bobo52310, leme say thanks too, coz this did the trick for! |
Thanks! That really helped me. Maybe an idea to include in the docs @Zizaco? |
Rename method: \Zizaco\Entrust\Traits\EntrustUserTrait::can.
In new version laravel, in User model added new trait \Illuminate\Foundation\Auth\Access\Authorizable, that has method "can". Because of this throw Exception of collision traits.
The text was updated successfully, but these errors were encountered: