Laravel 5.5 introduced new Router class method called redirect, which gives the flexibility to redirect to other URLs directly without creating a controller or closure.
How to use Route::redirect()
Let’s define a route with
Route::redirect() method, if user tries to access
http://localhost:8000/contact page, redirect the user to
Route::redirect() is very useful method when you want to redirect to a specific URI by accessing another URI.
I hope you like this Post, Please feel free to comment below, your suggestion and problems if you face - we are here to solve your problems.