use Illuminate\Http\Request; $request = Request::all(); // returns an array of all input data sent with the request
use Illuminate\Http\Request; $request = Request::header('User-Agent'); // returns the value of the User-Agent header
use Illuminate\Http\Request; $request = Request::cookie('name'); // returns the value of the 'name' cookie if it existsDetermine the package library: The Request class is part of the illuminate/http package, which is part of the Laravel framework. The Laravel framework provides a wide range of classes and components to build web applications, and the illuminate/http package is one of the core packages that provide HTTP-related functionality.