Reputation: 1410
When I run this command
php artisan generate:model Post
it generates the Post.php at app/Post.php and not in model. What I am doing wrong?
Upvotes: 0
Views: 830
Reputation: 1234
You can force the path by adding path option
Try this
php artisan generate:model Post --path=app/models
The reason it is placing new file in app directory is because you must have edited the path in your config file.
See more about configurations
Upvotes: 1