How to create model into package by artisan?
_developer_12 last edited by
Artisan is working on root level. Please share command to create model under packages. Or other method to create it.
aayush.bhatt172 last edited by
Model artisan command will not directly work inside your package folder.
What you can do is:
On the root level. Create your model with the artisan command (php artisan make:model YourModel).
Now copy your model file into (package folder -> src -> Models ).
Now change the namespace manually by editing the file.
Thanks and Regards