How to Redirecting to Controller Actions in Laravel ?



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

Post New Answer

More Laravel PHP Framework Interview Questions

Is laravel based on symfony?

0 Answers  


What are Global Middleware and Route Middleware ?

0 Answers  


Is laravel easier than php?

0 Answers  


What is observer in laravel?

0 Answers  


Explain request life cycle of laravel.

0 Answers  


What is x-csrf-token , how it is different from csrf tokens?

0 Answers  


How to pass custom table name in model?

0 Answers  


How do I populate my database with sample data?

0 Answers  


What is blade template?

0 Answers  


what is a Listeners ?

0 Answers  


What are the main differences between laravel 4 and laravel 5.x?

0 Answers  


How to return a view from route in laravel?

0 Answers  


Categories