Code laravel request code example
Example: laravel create new request
$myRequest = new \Illuminate\Http\Request();
$myRequest->setMethod('POST'); //default METHOD
$myRequest->request->add(['foo' => 'bar']);
dd($request->foo);
$myRequest = new \Illuminate\Http\Request();
$myRequest->setMethod('POST'); //default METHOD
$myRequest->request->add(['foo' => 'bar']);
dd($request->foo);