laravel-shift / factory-generator

MIT License
41 stars 20 forks source link

Use factory namespace expected by Laravel. #19

Closed mortenscheel closed 3 years ago

mortenscheel commented 3 years ago

This fixes #18 by assigning the namespace Laravel expects when calling Model::factory().

I'm a bit confused about #1 because it only mentions that factory classes should be put in nested folders, which they already are.

By the way, I tried to run the tests. Can you confirm that they need to be updated before they will work, or is it just in my environment?

jasonmccreary commented 3 years ago

@mortenscheel, I think the test cases for this package are pretty minimal. This looks good to me, so I'm going to go ahead and merge it. We can resolve any errors which may arise.