Redirect to a Controller Method in Laravel

May 27th, 2025 • 1 minute read time

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.

If you found this article helpful, you'll love our practical screencasts.
Author
Alex Garrett-Smith

Comments

No comments, yet. Be the first!

Tagged under