use Illuminate\Support\Facades\Redirect; return Redirect::to('http://example.com');
use Illuminate\Support\Facades\Redirect; return Redirect::to('http://example.com', 302);
use Illuminate\Support\Facades\Redirect; return Redirect::back()->withInput();In this example, the `back` method redirects the user to the previous URL they were on, while the `withInput` method attaches any input data to the redirect request. These code examples use the Illuminate\Support\Facades package, which is part of the Laravel framework. Laravel is a popular PHP web application framework that provides a variety of tools and libraries for building modern web applications.