How to Redirecting to Controller Actions in Laravel ?
Answer / 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 |
What is auth in laravel?
What is :: in laravel?
What is use of middleware in laravel?
How to turn off crsf protection for specific route in laravel?
What are route prefixes?
How can we handle Error Handling in Laravel ?
Explain how to serve sites on valet?
What is bagisto?
What is route parameters in laravel?
How to configure network interfaces in homestead?
Do you know what is the latest version of laravel?
What is binding?