예제 #1
0
 public function addStatesToRole(Role $role, array $insertables)
 {
     $role->states()->sync($insertables);
     return $role;
 }
 /**
  * Add permissions to role
  *
  * @param Role $role
  * @param array $insertables
  * @return mixed
  */
 public function addPermissionsToRole(Role $role, array $insertables)
 {
     $role->perms()->sync($insertables);
     return $role;
 }