Level 80
@VikramBhaskaran request() is a helper method that accesses the current HTTP request. Passing it a string parameter (i.e. product) then accesses that attributed submitted as form data.
This question is why I prefer to be a bit more "explicit" in my code, and will do something like:
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class SomeController extends Controller
{
public function someMethod(Request $request)
{
$product = $request->input('product');
// No question where product is coming from now
}
}