Artisan make:model folder customization
Little Known Laravel — Tip #5
This is tip #5 in a series covering lesser known Laravel tips. It’s my hope that each tip helps you in your development journeys.
Since I love to have my models in their own folder instead of running loose in the
/app folder I can build my artisan command like so:
php artisan make:command ModelMakeCommand
Now all my
make:model commands will put my Model files into the my preferred folder.
If you found this tip helpful, feel free to follow me on Twitter @smayzes and please consider sharing!
I also offer Laravel/PHP code review as a service, contact me through https://codelabs.ca to find out more!