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 |
How to create view Laravel - File Uploading ?
What is the use of accessors and mutators in eloquent?
What are the directory structure of laravel 5.8?
What are service containers?
Tell me does laravel support caching?
How to do 301 redirects in laravel?
What is the significant difference between insert() and insertgetid() function in laravel?
What is a controller middleware?
Explain the middlewares in laravel?
Explain Constructor Injection ?
What are some use valet commands?
What is meant by CRUD and explain each of it Operations ?