public function handle() : Model
    {
        if ($this->hasPasswordColumn()) {
            $password = $this->canSync() ?
                $this->password() : Str::random();

            if ($this->passwordNeedsUpdate($password)) {
                $this->applyPassword($password);
            }
        }

        return $this->model;
    }
public function handle() : Model
    {
        if ($this->hasPasswordColumn()) {
            $password = $this->canSync() ?
                $this->password() : Str::random();

            if ($this->passwordNeedsUpdate($password)) {
                $this->applyPassword($password);
            }
        }

        return $this->model;
    }
public function handle ( ) : Model { if ( $ this -> hasPasswordColumn ( ) ) { $ password = $ this -> canSync ( ) ? $ this -> password ( ) : Str :: random ( ) ; if ( $ this -> passwordNeedsUpdate ( $ password ) ) { $ this -> applyPassword ( $ password ) ; } } return $ this -> model ; }
Sets the password on the users model.

@return Model
Sets the password on the users model .