entrust icon indicating copy to clipboard operation
entrust copied to clipboard

Attach Permission to Multiple Roles Same Time?

Open reasecret opened this issue 5 years ago • 0 comments

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()

reasecret avatar May 26 '19 23:05 reasecret