diff options
author | Konstantin Zamyakin <dev@weblab.pro> | 2018-02-11 22:46:29 +0300 |
---|---|---|
committer | Konstantin Zamyakin <dev@weblab.pro> | 2018-02-11 22:46:29 +0300 |
commit | 09724050c285fe63ef87f2ec50cf2cd0f1211ff6 (patch) | |
tree | c054ccba70a11172361185bb41c02a5a01a73dba | |
parent | c62f51476f42387624f84da8e90d586b1d3a1a25 (diff) |
return 404 http status for missing links
-rw-r--r-- | app/Exceptions/Handler.php | 2 |
1 files changed, 1 insertions, 1 deletions
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 |