Request::getPassword PHP Method

getPassword() public static method

Returns the password.
public static getPassword ( ) : string | null
return string | null
        public static function getPassword()
        {
            //Method inherited from \Symfony\Component\HttpFoundation\Request
            return \Illuminate\Http\Request::getPassword();
        }

Usage Example

Example #1
0
 /**
  * Returns whether is valid password.
  *
  * @return bool  True, if is valid password.
  * @throws InvalidPasswordException();
  */
 public function isValidPassword()
 {
     $password = $this->request->getPassword();
     if ($password !== '' && strlen($password) < 6) {
         throw new InvalidPasswordException();
     }
     if ($password !== $this->request->getPasswordConfirm()) {
         throw new InvalidPasswordException();
     }
     return true;
 }
All Usage Examples Of Request::getPassword