class Exceptions (View source)
| void | __construct(Handler $handler)
Create a new exception handling configuration instance. | |
| ReportableHandler | report(callable $using)
Register a reportable callback. | |
| ReportableHandler | reportable(callable $reportUsing)
Register a reportable callback. | |
| $this | render(callable $using)
Register a renderable callback. | |
| $this | renderable(callable $renderUsing)
Register a renderable callback. | |
| $this | respond(callable $using)
Register a callback to prepare the final, rendered exception response. | |
| $this | throttle(callable $throttleUsing)
Specify the callback that should be used to throttle reportable exceptions. | |
| $this | map(Closure|string $from, Closure|string|null $to = null)
Register a new exception mapping. | |
| $this | level(string $type, string $level)
Set the log level for the given exception type. | |
| $this | context(Closure $contextCallback)
Register a closure that should be used to build exception context data. | |
| $this | dontReport(array|string $class)
Indicate that the given exception type should not be reported. | |
| $this | dontReportDuplicates()
Do not report duplicate exceptions. | |
| $this | dontFlash(array|string $attributes)
Indicate that the given attributes should never be flashed to the session on validation errors. | |
| $this | shouldRenderJsonWhen(callable $callback)
Register the callable that determines if the exception handler response should be JSON. | |
| $this | stopIgnoring(array|string $class)
Indicate that the given exception class should not be ignored. |
Create a new exception handling configuration instance.
Register a reportable callback.
Register a reportable callback.
Register a renderable callback.
Register a renderable callback.
Register a callback to prepare the final, rendered exception response.
Specify the callback that should be used to throttle reportable exceptions.
Set the log level for the given exception type.
Register a closure that should be used to build exception context data.
Indicate that the given exception type should not be reported.
Do not report duplicate exceptions.
Indicate that the given attributes should never be flashed to the session on validation errors.
Register the callable that determines if the exception handler response should be JSON.
Indicate that the given exception class should not be ignored.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/11.x/Illuminate/Foundation/Configuration/Exceptions.html