PHP Artisan Make: Demande
php artisan make:request User\CreateUserRequest
Encouraging Echidna
php artisan make:request User\CreateUserRequest
use Illuminate\Http\Request;
php artisan make:request RequestName
$myRequest = new \Illuminate\Http\Request();
$myRequest->setMethod('POST'); //default METHOD
$myRequest->request->add(['foo' => 'bar']);
dd($request->foo);
$request->all() + ['index' => 'value'];