diff --git a/app/Exceptions/Handler.php b/app/Exceptions/Handler.php index 0982dad3..8543b205 100644 --- a/app/Exceptions/Handler.php +++ b/app/Exceptions/Handler.php @@ -31,6 +31,22 @@ class Handler extends ExceptionHandler 'password_confirmation', ]; + /** + * Get the default context variables for logging. + * + * @return array + */ + protected function context() + { + try { + return array_merge(parent::context(), [ + 'params' => request()->except($this->dontFlash), + ]); + } catch (Throwable $e) { + return []; + } + } + /** * Register the exception handling callbacks for the application. *