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
How can we use middleware in laravel?
Where will you define laravel's facades?
What is database migration in laravel?
What are service containers?
What is the use of laravel framework?
What is named route?
Explain elixir in laravel?
What is singleton in laravel?
What are the difference between insert() and insertgetid() in laravel?
Explain binding instances?
How to get user’s ip address in laravel?
What is the difference between print_r and var_dump?
Where is the authentication configuration file is located in laravel?
Explain request life cycle of laravel.
What is laravel 5?