Exceptions
class Exceptions (View source)
Methods
Register a reportable callback.
Register a renderable callback.
Specify the callback that should be used to throttle reportable exceptions.
Set the log level for the given exception type.
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.
Details
void
__construct(Handler $handler)
Create a new exception handling configuration instance.
ReportableHandler
reportable(callable $reportUsing)
Register a reportable callback.
$this
renderable(callable $renderUsing)
Register a renderable callback.
$this
throttle(callable $throttleUsing)
Specify the callback that should be used to throttle reportable exceptions.
$this
level(Throwable> $type, $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(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.