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 laravel elixir?
What do you know about laravel eloquent?
What are route prefixes?
Explain how to add csrf protection in laravel?
How to use delete statement in laravel?
What are cookies? How to get, set, distroy cookies in laravel?
What is Middleware Parameters ?
How to know laravel version?
What is binding in laravel?
Is laravel based on symfony?
What is bootstrap in laravel?
How to use laravel framework in php?