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


Please Help Members By Posting Answers For Below Questions

What encryption does laravel use?

388


How do I use sub-domain routing?

412


How to serve sites with tls on valet?

415


How to install laravel by composer?

471


What is reverse path multicasting?

430






What are the requirements to install valet?

414


How to enable or disable maintenance mode in laravel?

438


What are the software’s included in laravel homestead?

432


Explain traits in laravel.

424


Explain closures in laravel?

412


What is the use of db facade?

471


What is mvc framework laravel?

426


How to configure a mail-in laravel?

448


What is a Views ?

536


What is Testability ?

546