diff --git a/app/Exceptions/Handler.php b/app/Exceptions/Handler.php index a6ed5fa..6529a08 100644 --- a/app/Exceptions/Handler.php +++ b/app/Exceptions/Handler.php @@ -38,6 +38,10 @@ public function register() 'status' => -1, ], 404); } + else + { + return redirect()->route('home', [], 301); + } }); }