Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/cydrobolt/polr.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Zamyakin <dev@weblab.pro>2018-02-11 22:46:29 +0300
committerKonstantin Zamyakin <dev@weblab.pro>2018-02-11 22:46:29 +0300
commit09724050c285fe63ef87f2ec50cf2cd0f1211ff6 (patch)
treec054ccba70a11172361185bb41c02a5a01a73dba
parentc62f51476f42387624f84da8e90d586b1d3a1a25 (diff)
return 404 http status for missing links
-rw-r--r--app/Exceptions/Handler.php2
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