Laravel Route::redirect tip

Laravel Route::redirect tip

Did you know? You can quickly define a redirect route using Route::redirect('from', 'to') without defining a full route or controller for performing a simple redirect. You can customize the status code returned using the optional third parameter e.g 301 for permanent redirects. Or just use the Route::permanentRedirect method.