entrust
entrust copied to clipboard
Attach Permission to Multiple Roles Same Time?
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()