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 localization?
What is meant by Logging ?
What is laravel migration?
What are helper functions and name 10 with their purposes?
Explain the service container?
What is laravel api rate limit?
What is blueprint in laravel?
What is Middleware Parameters ?
How to distroy cookies in laravel?
What is guarded attribute in a model?
How to use delete statement in laravel?
What is the significant difference between insert() and insertgetid() function in laravel?