laravel-acl
laravel-acl copied to clipboard
RoleUser and PermissionUser tables
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).