How to generate laravel request in namespace path for laravel 5

I'm familiar with the laravel artisan command

make:request

however I can't seem to get it to place it in a directory. For example I have a directory structure

app/Http/Requests/User

and I'd like to place a request in that folder namespaced appropriately but

php artisan make:request User\CreateUserRequest 

doesn't work.


Solution 1:

artisan make:request User\\CreateUserRequest

thanks to @DarrylCoder for answering in the comments

Solution 2:

Switch the slash (/) direction to forward:

php artisan make:request User/CreateUserRequest 

Solution 3:

php artisan make:request Auth\\CreateUserRequest

that will make request file in Requests\Auth folder

OR

php artisan make:request Auth/CreateUserRequest