Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assumes models are stored at top level of app directory #2

Closed
mikeerickson opened this issue Mar 15, 2019 · 1 comment
Closed

Assumes models are stored at top level of app directory #2

mikeerickson opened this issue Mar 15, 2019 · 1 comment

Comments

@mikeerickson
Copy link

In our applications, our models are stored in a Models folder within the App directory, thus making it impossible to create factories using this package.

I did try to use

art make:populated-factory Models\Contact

but an error is also produced

"App\ModelsContact" class does not exist.
@mikeerickson
Copy link
Author

OK, after reviewing the source code, I figured it out.

For posterity and future inquries, here is how it should be executed

> art make:populated-factory \\App\\Models\\Contact ContactFactory

Note: ContactFactory is optional, but I like to be explicit :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant