diff --git a/app/Exceptions/Handler.php b/app/Exceptions/Handler.php index 043cad6..8e51a38 100644 --- a/app/Exceptions/Handler.php +++ b/app/Exceptions/Handler.php @@ -46,6 +46,11 @@ class Handler extends ExceptionHandler */ public function render($request, Exception $exception) { + if ($exception instanceof \ErrorException) { + $response = response()->view('errors.500', [], 500); + return $this->toIlluminateResponse($response,$exception); + } + return parent::render($request, $exception); } } diff --git a/resources/views/errors/500.blade.php b/resources/views/errors/500.blade.php new file mode 100644 index 0000000..229ac59 --- /dev/null +++ b/resources/views/errors/500.blade.php @@ -0,0 +1,23 @@ + + +
+ + + + + + +Une erreur est survenue, Merci de réessayer ultérieurement.
+