How to Forward a Request to Another Controller in Laravel

If you have ever need to forward or call another controller from a controller in Laravel, here are two methods

This will redirect the request to another controller’s method.

return redirect()->action('[email protected]');

You can also call another method directly without doing a redirect

return app->call('App\Http\Controllers\[email protected]');

Hope one of these methods help!


Thanks for reading. Make sure you follow me on Twitter to stay up to date on the progress of my side projects T.LYWeather Extension, and Link Shortener Extension. If you are interested in the tech I use daily, check out my uses page.  

2 thoughts to “How to Forward a Request to Another Controller in Laravel”

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.