New artisan command
#46980
Replies: 2 comments 1 reply
-
It could simplify the command but you shouldn’t name models |
Beta Was this translation helpful? Give feedback.
1 reply
-
I don't think, it should be either or (keeping in mind what @TheBlckbird said for example) but it wouldn't hurt introducing this as a shortcut when possible, I suppose. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Laravel idea:
Isn't easier if we had a universal artisan command 'make' wich will generate classes based on last prefix:
("classNameController", "...Model", "...Request", "...Resource", "...Factory", "...Seeder", "...Policy", "...Mail", "...Notification", "...Event", "...Job", "...Listener" ...) It helps to simplify the command, and also create some name convention to follow.
php artisan make UserController
php artisan make UserFactory
php artisan make UserSeeder
....
Beta Was this translation helpful? Give feedback.
All reactions