2

Laravel 5.1.11 already has been updated with Authorization. Zizaco's Entrust has been around for a while now. Which should we use in authorising users?

doncadavona
  • 7,162
  • 9
  • 41
  • 54
  • well, it's depend on how you need your application to be. as, Entrust had `role` concept - while so far i see Authorization as a permission-based only. not to mention, Entrust simplify job in saving user role and permission to database. – Bagus Tesa Dec 30 '15 at 05:17

1 Answers1

2

I use both. I find policies are helpful for limiting user access to models that they "own", while entrust is helpful for defining roles and permissions for users in general. Sometimes I combine the two by returning true for a policy if the user has a certain role.

Erik Berkun-Drevnig
  • 2,306
  • 23
  • 38