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
Do you know what developed the laravel?
What are policies classes?
What is rest api laravel?
What is meant by Laravel - Localization ?
Tell me what is the purpose of using dd() function iin laravel?
How can we use the custom table in laravel?
What is guard in laravel authentication?
How to configure route cache and clear route cache in laravel?
Explain how to upgrade valet to valet 2.0?
What is a Middleware Parameters ?
What is meant by Laravel - Encryption ?
What are route groups?
Is laravel an mvc?
How we can get user's detail when he is logged in using auth?
What is package in laravel? Name some laravel packages?