How can I redirect all 404 errors to homepage? I have custom Error Page but google analytics is throwing too much errors.
Please consider the answer given in the documentation: https://laravel.com/docs/10.x/routing#fallback-routes
For instance, in your web file:
Route::fallback(function () {
return redirect()->route('index');
});