How to Redirecting to Controller Actions in Laravel ?

Answer Posted / suresh kumar

Not only named route but we can also redirect to controller actions.
We need to simply pass the controller and name of the action to the action method as shown in the following example.

return redirect()->action(‘NameOfController@methodName’,[parameters]);

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Do you know what developed the laravel?

521


What are policies classes?

522


What is rest api laravel?

536


What is meant by Laravel - Localization ?

1123


Tell me what is the purpose of using dd() function iin laravel?

530


How can we use the custom table in laravel?

508


What is guard in laravel authentication?

539


How to configure route cache and clear route cache in laravel?

542


Explain how to upgrade valet to valet 2.0?

577


What is a Middleware Parameters ?

663


What is meant by Laravel - Encryption ?

1107


What are route groups?

502


Is laravel an mvc?

555


How we can get user's detail when he is logged in using auth?

527


What is package in laravel? Name some laravel packages?

501