src/Models/Role.php
public function deleteUser($user)
    {
        if ($this->hasUser($user)) {
            return RoleUser::where(
                    ['role_id' => $this->id, 'user_id' => $user->id]
                )->first()->delete();
        }

        return false;
    }
public function deleteUser($user)
    {
        if ($this->hasUser($user)) {
            return RoleUser::where(
                    ['role_id' => $this->id, 'user_id' => $user->id]
                )->first()->delete();
        }

        return false;
    }
public function deleteUser ( $ user ) { if ( $ this -> hasUser ( $ user ) ) { return RoleUser :: where ( [ 'role_id' => $ this -> id , 'user_id' => $ user -> id ] ) -> first ( ) -> delete ( ) ; } return false ; }
Deletes the specified role user.

@param mixed $user
Deletes the specified role user .