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 |
Is laravel based on symfony?
What are Global Middleware and Route Middleware ?
Is laravel easier than php?
What is observer in laravel?
Explain request life cycle of laravel.
What is x-csrf-token , how it is different from csrf tokens?
How to pass custom table name in model?
How do I populate my database with sample data?
What is blade template?
what is a Listeners ?
What are the main differences between laravel 4 and laravel 5.x?
How to return a view from route in laravel?