protected function checkPasswords()
    {
        if($this->getOriginal('password') != $this->password){

            if($this->password === $this->password_confirmation){

                // Hashes password and unset password_confirmation field
                $this->password = bcrypt($this->password);

                unset($this->password_confirmation);

            } else {

                return false;
            }

        }

        return true;
    }
protected function checkPasswords()
    {
        if($this->getOriginal('password') != $this->password){

            if($this->password === $this->password_confirmation){

                // Hashes password and unset password_confirmation field
                $this->password = bcrypt($this->password);

                unset($this->password_confirmation);

            } else {

                return false;
            }

        }

        return true;
    }
protected function checkPasswords ( ) { if ( $ this -> getOriginal ( 'password' ) != $ this -> password ) { if ( $ this -> password === $ this -> password_confirmation ) { // Hashes password and unset password_confirmation field $ this -> password = bcrypt ( $ this -> password ) ; unset ( $ this -> password_confirmation ) ; } else { return false ; } } return true ; }
Check if the passwords match

@return bool
Check if the passwords match