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!

Leave a Reply

Your email address will not be published. Required fields are marked *

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