You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to insert a table between Users and the roles/permissions.
I would like something like this:
user1->new_table1->role1
user1->new_table2->role1
user1->new_table3->role2
Can anyone help me?
The text was updated successfully, but these errors were encountered:
I have already created relations, but after this how can I pass parameters to filter intermediate table using can()? Now I do somthing like this:
auth()->user()->intermediateTable($filterParameter)->first()->can('edit')
work fine but I think is not the best practice.
In some other posts I see can('edit',$filterParameter) using Gate::before in AuthServiceProvider, I tried work but seem to be only a work around.
I would like to insert a table between Users and the roles/permissions.
I would like something like this:
user1->new_table1->role1
user1->new_table2->role1
user1->new_table3->role2
Can anyone help me?
The text was updated successfully, but these errors were encountered: