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

Guidelines for moving from zizaco/entrust #22

Closed
unitedworx opened this issue Aug 27, 2016 · 5 comments
Closed

Guidelines for moving from zizaco/entrust #22

unitedworx opened this issue Aug 27, 2016 · 5 comments
Labels

Comments

@unitedworx
Copy link

Hi there just found this fork of zizaco/entrust and really really happy about it since entrust is kind of dead atm.

Any guidelines of moving from entrust to laratrast? Or I should simply swap packages along with namespaces and get going? I am using "zizaco/entrust": "master@dev"

@Naoray
Copy link
Contributor

Naoray commented Aug 28, 2016

I switched a few days ago. Just remove every reference to zizaco/entrust, run

composer remove zizaco/entrust

and go on installing santigarcor/laratrust as suggested in the docs.

@santigarcor
Copy link
Owner

@unitedworx do as @Naoray said

@unitedworx
Copy link
Author

Thanks for the replies, was simply wondering if this is a drop-in replacement for entrust or a complete rewrite where I would need to refactor alot of my code. will give it a go in a few days and see how it goes

@Naoray
Copy link
Contributor

Naoray commented Aug 29, 2016

You don't have to throw out every line of code where you use the zizaco/entrust. Like when you create a role/permission or query them, cause they are used the same way in santigarcor/laratrust. Just delete the ServiceProvider/alias Reference in the config/app.php file, that's all you've to remove.

@stevevg
Copy link
Contributor

stevevg commented Nov 28, 2016

Remeber to call php artisan view:clear to delete all compiled views after you switch to Laratrust.
It took me 20 minutes to figure that out (my views kept looking for the "Entrust" class, obviously not finding it).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants