5 years ago

artisan make:model specify the directory and namespace?

Posted 5 years ago by isimmons

Just checking in case I'm missing something but the make:model command only accepts a single argument of class name and places it directly under app/

I prefer to have a directory for each model/entity under a Models or Entities directory such as app/Entities/User/User.php but it's not possible with the artisan command without cut/pasting it to the right place and then setting the namespace which kinda defeats the purpose of the artisan command.

Surely I'm missing something and am not the only one that doesn't want to fill up my app directory with a bunch of models :-)

Please sign in or create an account to participate in this conversation.