public function unassignRole($roleName, $userId)
    {
        $role = $this->role->findByName($roleName);
        $user = $this->model->find($userId);

        $user->roles()->detach($role);
    }
public function unassignRole($roleName, $userId)
    {
        $role = $this->role->findByName($roleName);
        $user = $this->model->find($userId);

        $user->roles()->detach($role);
    }
public function unassignRole ( $ roleName , $ userId ) { $ role = $ this -> role -> findByName ( $ roleName ) ; $ user = $ this -> model -> find ( $ userId ) ; $ user -> roles ( ) -> detach ( $ role ) ; }
Unassign a role from the user

@param  string $roleName
@param  integer $userId
@return void
Unassign a role from the user