laravel redirect all routes to index.html code example Example: laravel return redirect to named route return redirect()->route('login');