mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 01:08:56 +00:00
Add customized 404 page
This commit is contained in:
@@ -6,6 +6,7 @@ use Exception;
|
||||
use Illuminate\Auth\AuthenticationException;
|
||||
use Illuminate\Database\Eloquent\ModelNotFoundException;
|
||||
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
|
||||
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
|
||||
|
||||
class Handler extends ExceptionHandler
|
||||
{
|
||||
@@ -50,6 +51,11 @@ class Handler extends ExceptionHandler
|
||||
return response()->view('errors.404', [], 404);
|
||||
}
|
||||
|
||||
if ($exception instanceof NotFoundHttpException)
|
||||
{
|
||||
return response()->view('errors.404', [], 404);
|
||||
}
|
||||
|
||||
if ($this->isHttpException($exception)) {
|
||||
return $this->renderHttpException($exception);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user