public function resolve($errorCode)
    {
        if (key_exists($errorCode, $this->messages)) {
            return $this->messages[$errorCode];
        }

        if ($this->translator->has($errorCode = "errors.$errorCode")) {
            return $this->translator->trans($errorCode);
        }

        return null;
    }
public function resolve($errorCode)
    {
        if (key_exists($errorCode, $this->messages)) {
            return $this->messages[$errorCode];
        }

        if ($this->translator->has($errorCode = "errors.$errorCode")) {
            return $this->translator->trans($errorCode);
        }

        return null;
    }
public function resolve ( $ errorCode ) { if ( key_exists ( $ errorCode , $ this -> messages ) ) { return $ this -> messages [ $ errorCode ] ; } if ( $ this -> translator -> has ( $ errorCode = "errors.$errorCode" ) ) { return $ this -> translator -> trans ( $ errorCode ) ; } return null ; }
Resolve a message from the given error code.

@param  mixed $errorCode
@return string|null
Resolve a message from the given error code .