Make sure you have it in composer.json :
"autoload": { "classmap": [ "database", "tests/TestCase.php" ], "psr-4": { "App\\": "app/" } },
You should have this part of psr-4 (it is set by default here).
Now you better not use app/Requests/User , but app/Http/Requests/User , because Requests should be placed in the Http directory.
Now, when you run php artisan make:request User\CreateUserRequest , you should get a response from the artisan:
\ Request created successfully.
and in your app/Http/Requests/User directory you should have a CreateUserRequest.php file
I checked it a minute ago and everything works fine. Of course, it is possible that in the version that you installed, you have a bug or you changed some other application settings so that you can try updating it to the newest version (I tested it in the version that I downloaded a couple of days ago).
Marcin nabiaΕek
source share