From 09724050c285fe63ef87f2ec50cf2cd0f1211ff6 Mon Sep 17 00:00:00 2001 From: Konstantin Zamyakin Date: Sun, 11 Feb 2018 22:46:29 +0300 Subject: return 404 http status for missing links --- app/Exceptions/Handler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Exceptions/Handler.php b/app/Exceptions/Handler.php index 2afb883..e1b16ba 100644 --- a/app/Exceptions/Handler.php +++ b/app/Exceptions/Handler.php @@ -51,7 +51,7 @@ class Handler extends ExceptionHandler { return redirect()->to(env('SETTING_INDEX_REDIRECT')); } // Otherwise, show a nice error page - return view('errors.404'); + return response(view('errors.404'), 404); } if ($e instanceof HttpException) { // Handle HTTP exceptions thrown by public-facing controllers -- cgit v1.2.3