Update (exception handler): force all dead routes to home page
This commit is contained in:
@@ -38,6 +38,10 @@ public function register()
|
||||
'status' => -1,
|
||||
], 404);
|
||||
}
|
||||
else
|
||||
{
|
||||
return redirect()->route('home', [], 301);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user