I am currently trying to make it easier for my team and I to generate controllers for our packages. I know I can use php artisan controller:make --path, but I would rather use the --package or --bench command instead.
Basically, I have moved all my folders from src to src/Vendor/Package, including my controllers/ If I were to use php artisan controller:make --bench vendor/package Controller, then it generates it inside src/controllers which I don't want it to do.
Whenever I generate a controller this way, I want it to default to src/Vendor/Package and would like to know the best way of changing the location.
I would be grateful for any help on this one as I have searched around and found nothing on this subject.
Try to install JeffreyWay Generators. Generators allowes you to pass --path --bench flag etc
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.