mpociot / laravel-test-factory-helper

Generate Laravel test factories from your existing models
935 stars 87 forks source link

Generate Seeking Non-Existent Model #18

Open bobbyahines opened 7 years ago

bobbyahines commented 7 years ago

I have a Model called Address that utilizes several lookup tables named with _type (eg. Address_type, Region_type, etc.) Upon running php artisan test-factory-helper:generate, the package errors out with the message:

[Symfony\Component\Debug\Exception\FatalThrowableError]  
Class 'App\Models\Region' not found  

It appears to be expecting a Model that doesn't exist: Region to associate with Region_type.

mounssif commented 6 years ago

Still not fixed? Or any solution?