Explain how to do 301 redirects in laravel?
Answer / Prashant Kumar Tripathi
To perform a 301 redirect in Laravel, you can use the Redirect class from the Http response. Here's an example of redirecting to another URL with a status code of 301 (permanent redirect).nn```phpnreturn Redirect::away('http://new-url.com', 301);n```
| Is This Answer Correct ? | 0 Yes | 0 No |
How to create custom middleware in laravel?
What is laravel dusk?
In laravel, what is fillable attribute in a model?
What is a Terminable Middleware ?
Tell me how do I see all of the routes that are defined?
How to extend login expire time in auth?
In which folder robot.txt is placed?
Explain faker in laravel.
What is service providers?
What is the difference between print_r and var_dump?
What do you mean by eloquent used in laravel 5?
How to make a helper file in laravel?