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

RevisionableTrait conflicts with EntrustUserTrait #175

Closed
sumityadav opened this issue Oct 24, 2015 · 1 comment
Closed

RevisionableTrait conflicts with EntrustUserTrait #175

sumityadav opened this issue Oct 24, 2015 · 1 comment

Comments

@sumityadav
Copy link

I am using Laravel Framework version 5.1.20 (LTS)

I am using EntrustUserTrait and RevisionableTrait where the boot method is present in both traits and doesn't load because of the conflicts. Is there a way to get them working together?

Thanks

@alexhouse
Copy link

When you use the traits at the top of your model, you can pick which method to use:

use RevisionableTrait, EntrustUserTrait {
    EntrustUserTrait::boot insteadof RevisionableTrait;
}

Laravel 5.1 should use Revisionable's bootRevisionableTrait method instead of boot

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