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

How to create view Laravel - File Uploading ?

1 Answers  


What is the use of accessors and mutators in eloquent?

0 Answers  


What are the directory structure of laravel 5.8?

0 Answers  


What are service containers?

0 Answers  


Tell me does laravel support caching?

0 Answers  






How to do 301 redirects in laravel?

0 Answers  


What is the significant difference between insert() and insertgetid() function in laravel?

0 Answers  


What is a controller middleware?

0 Answers  


Explain the middlewares in laravel?

0 Answers  


Explain Constructor Injection ?

1 Answers  


What are some use valet commands?

0 Answers  


What is meant by CRUD and explain each of it Operations ?

0 Answers  


Categories