Documentation

Handler extends Handler

Table of Contents

$dontReport  : array<string|int, mixed>
A list of the exception types that should not be reported.
render()  : Response|JsonResponse
Render an exception into an HTTP response.
report()  : void
Report or log an exception.

Properties

$dontReport

A list of the exception types that should not be reported.

protected array<string|int, mixed> $dontReport = [IlluminateAuthAccessAuthorizationException::class, SymfonyComponentHttpKernelExceptionHttpException::class, IlluminateDatabaseEloquentModelNotFoundException::class, IlluminateValidationValidationException::class]

Methods

render()

Render an exception into an HTTP response.

public render(Request $request, Throwable $exception) : Response|JsonResponse
Parameters
$request : Request
$exception : Throwable
Tags
throws
Throwable
Return values
Response|JsonResponse

report()

Report or log an exception.

public report(Throwable $exception) : void

This is a great spot to send exceptions to Sentry, Bugsnag, etc.

Parameters
$exception : Throwable
Tags
throws
Exception
Return values
void

Search results