protected function passwordNeedsUpdate($password = null) : bool
    {
        $current = $this->currentModelPassword();

        if ($current !== null && $this->canSync()) {
            return ! Hash::check($password, $current);
        }

        return is_null($current);
    }
protected function passwordNeedsUpdate($password = null) : bool
    {
        $current = $this->currentModelPassword();

        if ($current !== null && $this->canSync()) {
            return ! Hash::check($password, $current);
        }

        return is_null($current);
    }
protected function passwordNeedsUpdate ( $ password = null ) : bool { $ current = $ this -> currentModelPassword ( ) ; if ( $ current !== null && $ this -> canSync ( ) ) { return ! Hash :: check ( $ password , $ current ) ; } return is_null ( $ current ) ; }
Determines if the current model requires a password update.

This checks if the model does not currently have a
password, or if the password fails a hash check.

@param string|null $password

@return bool
Determines if the current model requires a password update .