diff --git a/app/Architecture/ExceptionHandler.php b/app/Architecture/ExceptionHandler.php index 870de22..f05c4d2 100644 --- a/app/Architecture/ExceptionHandler.php +++ b/app/Architecture/ExceptionHandler.php @@ -29,6 +29,8 @@ class ExceptionHandler extends Handler ->setStatusCode($response->status()); } - return $response; + return Inertia::render("DefaultError") + ->toResponse($request) + ->setStatusCode($response->status()); } } diff --git a/resources/js/Pages/DefaultError.vue b/resources/js/Pages/DefaultError.vue new file mode 100644 index 0000000..a9c887f --- /dev/null +++ b/resources/js/Pages/DefaultError.vue @@ -0,0 +1,76 @@ + + + \ No newline at end of file