showThrowable()
showThrowable(\Throwable $throwable) : mixed
Show Throwable.
This method handles and displays exceptions or errors based on the environment. In a development environment ('APP_ENV' === 'dev'), it displays detailed error information using the Whoops error handler. In other environments, it may perform different actions depending on the type of exception.
Parameters
\Throwable | $throwable | Holds an instance of Throwable (Exception or Error). |
Throws
- \Throwable
Returns
mixed —Returns a response or performs actions based on the exception type.