Laravel 5 Entrust - Users belong to many apps

前端 未结 1 1657
悲哀的现实
悲哀的现实 2021-01-14 09:28

I am using Entrust package in Laravel 5.3 for managing user roles and permissions, and it works perfectly.

The problem is that my users belong t

相关标签:
1条回答
  • 2021-01-14 09:48

    Just for the record, I have found a Laravel 5 Package called Laratrust (https://github.com/santigarcor/laratrust/tree/master) which in its master branch now supports "groups implementation", where roles can be attached to users within a group. And that is exactly what I needed, considering my apps as groups, so I am going to give it a try :)

    Digging a little into the code and its database design, I have to say that I was right when I thought of adding an app_id field to the pivot role_user table... That is exactly as this package implements that relation.

    Thanks ;)

    0 讨论(0)
提交回复
热议问题