-
I use Laravel Framework 8.74.0, and try to create a Controller with Resource, Requests, API and Test options. *I delete the Controller and Test before running another make command I could create Requests with Anyone could tell me what's wrong ? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Are you ensuring "--requests" is a valid option on that Laravel version? Please do "php artisan make:controller --help" to see all valid options. |
Beta Was this translation helpful? Give feedback.
-
Hmm...okay, so, the docs didn't mentioned it clearly. If we want to use |
Beta Was this translation helpful? Give feedback.
Hmm...okay, so, the docs didn't mentioned it clearly. If we want to use
--requests
or-R
in themake:controller
command, we need to use the--model
option. It's mentioned here but specifically for route model binding.That's all.