1use App\Http\Controllers\HomeController;
2
3return redirect()->action([HomeController::class, 'index']);
1// For a route with the following URI: profile/{id}
2
3return redirect()->route('profile', [$user]);
1// For a route with the following URI: profile/{id}
2
3return redirect()->route('profile', ['id' => 1]);