kodeine / laravel-acl

Light-weight role-based permissions system for Laravel 6+ built in Auth system.
MIT License
786 stars 216 forks source link

RoleUser and PermissionUser tables #220

Open manfield opened 7 years ago

manfield commented 7 years ago

According to new Laravel 5.4 implementation of Eloquent methods, like hasMany or belongsToMany, whose behavior is different, compared to the 5.3:

https://github.com/laravel/framework/issues/17503

I think you should create role_user and permission_user tables taking care of the correct foreign key (in most cases user_id is ok, but it might be changed according to specific needs).