public function removeRole($idOrName)
    {
        $ids = is_array($idOrName) ? $idOrName : func_get_args();

        foreach ($ids as $search) {
            $role = Role::search($search)->firstOrFail();

            $this->roles()->detach($role->id);
        }
    }
public function removeRole($idOrName)
    {
        $ids = is_array($idOrName) ? $idOrName : func_get_args();

        foreach ($ids as $search) {
            $role = Role::search($search)->firstOrFail();

            $this->roles()->detach($role->id);
        }
    }
public function removeRole ( $ idOrName ) { $ ids = is_array ( $ idOrName ) ? $ idOrName : func_get_args ( ) ; foreach ( $ ids as $ search ) { $ role = Role :: search ( $ search ) -> firstOrFail ( ) ; $ this -> roles ( ) -> detach ( $ role -> id ) ; } }
Remove role from user.

@param $idOrName
Remove role from user .