public function detachRoles($roles)
    {
        if ($roles instanceof Role) {
            $roles = [$roles->getKey()];
        }

        $this->roles()->detach($roles);

        unset($this->relations['roles']);

        return $this;
    }
public function detachRoles($roles)
    {
        if ($roles instanceof Role) {
            $roles = [$roles->getKey()];
        }

        $this->roles()->detach($roles);

        unset($this->relations['roles']);

        return $this;
    }
public function detachRoles ( $ roles ) { if ( $ roles instanceof Role ) { $ roles = [ $ roles -> getKey ( ) ] ; } $ this -> roles ( ) -> detach ( $ roles ) ; unset ( $ this -> relations [ 'roles' ] ) ; return $ this ; }
Un-assign roles from user.

@param  \Orchestra\Model\Role|int|array  $roles

@return $this
Un - assign roles from user .