protected function validatePasswordWithDefaults(array $credentials)
    {
        [$password, $confirm] = [
            $credentials['password'],
            $credentials['password_confirmation'],
        ];

        return $password === $confirm && mb_strlen($password) >= 8;
    }
protected function validatePasswordWithDefaults(array $credentials)
    {
        [$password, $confirm] = [
            $credentials['password'],
            $credentials['password_confirmation'],
        ];

        return $password === $confirm && mb_strlen($password) >= 8;
    }
protected function validatePasswordWithDefaults ( array $ credentials ) { [ $ password , $ confirm ] = [ $ credentials [ 'password' ] , $ credentials [ 'password_confirmation' ] , ] ; return $ password === $ confirm && mb_strlen ( $ password ) >= 8 ; }
Determine if the passwords are valid for the request.

@param  array  $credentials
@return bool
Determine if the passwords are valid for the request .