roles
roles copied to clipboard
merge & fix syncRoles(), add syncPermissions() update documentation
Any chance of getting some of this merged any time soon?
@sw-double I'm not going through the pain of creating another pull request for this, but in the HasRoleAndPermission Trait you need to change SyncPermissions to
/**
* Sync permissions for a user.
*
* @param array|\Bican\Roles\Models\Permission[]|\Illuminate\Database\Eloquent\Collection $permissions
* @return array
*/
public function syncPermissions($permissions)
{
$this->userPermissions = null;
return $this->userPermissions()->sync($permissions);
}
@mackhankins thanks! I believe it is fixed now