From e928a86ef5e8e91c1f9d44a049274746ea971c08 Mon Sep 17 00:00:00 2001 From: mychidarko Date: Tue, 4 Oct 2022 10:48:52 +0000 Subject: [PATCH] feat: add boilerplate for error page --- routes/index.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/routes/index.php b/routes/index.php index 0de0a65..9043f7a 100644 --- a/routes/index.php +++ b/routes/index.php @@ -13,6 +13,18 @@ // echo 'error 404'; // }); +/* +|-------------------------------------------------------------------------- +| Set up 500 handler +|-------------------------------------------------------------------------- +| +| Create a handler for error 500 +| +*/ +// app()->setErrorHandler(function() { +// response()->page(ViewsPath("errorPage.html", false), 500); +// }); + /* |-------------------------------------------------------------------------- | Set up Controller namespace