use Illuminate\Support\Facades\Redirect; return Redirect::route('home');
return Redirect::to('https://example.com', 301);
return Redirect::back()->withInput();In the examples above, we can see that the Redirect facade is used to perform various types of redirections such as redirecting to a named route, a specific URL with a status code, or redirecting back with the input. The package library used here is the php illuminate.support.facades Redirect action.