Retrieving Input: Retrieving An Input Value

$name = $request->input('name');
$name = $request->input('name', 'Sally');
$name = $request->input('products.0.name');

$names = $request->input('products.*.name');

Using a few simple methods, you may access all of the user input from your Illuminate\Http\Request instance without worrying about which HTTP verb was used for the request.

Value will be returned if the requested input value is not present on the request.

Related concepts

Retrieving Input: Retrieving An Input Value — Structure map

Clickable & Draggable!

Retrieving Input: Retrieving An Input Value — Related pages: