Skip to content

Instantly share code, notes, and snippets.

@salipro4ever
Last active April 19, 2018 02:03
Show Gist options
  • Save salipro4ever/813fa255fbe8df26317812c4b59fa223 to your computer and use it in GitHub Desktop.
Save salipro4ever/813fa255fbe8df26317812c4b59fa223 to your computer and use it in GitHub Desktop.

Header must contains Accept: application/json

405

Method not exist, throw a exception immediately, middleware isnot called (except global middleware). MethodNotAllowedHttpException is a HttpException. STOP now

500

Throw a exception FatalThrowableError immediately, middleware isnot called, STOP now

401, 403

Route ok <- all middleware called, not HttpException. Throw AuthenticationException/AccessDeniedHttpException .Still RUN

validate

Route ok <- all middleware called, not HttpException. Throw ValidationException .Still RUN

abort()

Route ok <- all middleware called, is a HttpException, Still RUN

xxxOrFail()

Route ok <- all middleware called. throw ModelNotFoundException, still RUN

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment