Closed hardikaecor closed 9 years ago
I'm having the same issue when trying to use TestDummy for seeding. Basically the same setup as @hardikaecor . I've tried changing to TestDummy::times(5)->create('App\Events');
but I get a TestDummyException Could not locate a factory with the name: App\Events
. Without App\
I get the same error as above.
I was able to solve this by changing my factories.php file. I was using $factory('Events'
instead of $factory('App\Events'
.
I am trying to load the basic testdummy as follows
and my tests/factories/users.php file is as follows:
but when i run, it gives me error The User model was not found.
does anyone knows what this is?