Update (exception handler): force all dead routes to home page

This commit is contained in:
2023-10-02 15:57:05 +08:00
parent 10ce20391c
commit e04c519ab9

View File

@@ -38,6 +38,10 @@ public function register()
'status' => -1, 'status' => -1,
], 404); ], 404);
} }
else
{
return redirect()->route('home', [], 301);
}
}); });
} }