Open reasecret opened 5 years ago
Is there any way to attach permission to multiple roles when creating a permission?
`$permission = New Permission;
foreach ($request->roles as $key => $value) { $permission->attachRole($value); }`
I've tried this but giving me error : Call to undefined method App\Permission::attachRole()
Call to undefined method App\Permission::attachRole()
Is there any way to attach permission to multiple roles when creating a permission?
`$permission = New Permission;
foreach ($request->roles as $key => $value) { $permission->attachRole($value); }`
I've tried this but giving me error :
Call to undefined method App\Permission::attachRole()