Request and responses

The Request object gives access to the HTTP request data: form fields, URL parameters, headers, files, current user. A response can be a view, JSON, a redirect or a specific HTTP code. Laravel injects it automatically into controller methods.

Example

$nom = $request->input('nom');
return redirect()->route('produits.index');

Related concepts

The whole glossary