Laravel provides tons of options for redirecting, but did you know you can redirect specifically to a controller method?
Here's how.
return redirect()
->action([DashboardController::class, 'index']);
You can also pass parameters through if they're required.
return redirect()
action([UserController::class, 'profile'], ['id' => 1]);
This redirection method isn't widely used, but makes sense for when it's clearer to redirect to specific methods rather than named routes.