Syed Sajid
Syed Sajid

Reputation: 1410

Laravel 4 (4.2.8) Generate model in app folder and not model

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

Answers (1)

Sher Afgan
Sher Afgan

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

Related Questions