laravel make a request code example
Example 1: laravel create new request
$myRequest = new \Illuminate\Http\Request();
$myRequest->setMethod('POST'); //default METHOD
$myRequest->request->add(['foo' => 'bar']);
dd($request->foo);
Example 2: php artisan make:request
php artisan make:request User\CreateUserRequest
Example 3: laravel add request
$request->all() + ['index' => 'value'];