Closed AhSem closed 6 years ago
Can you please detail what is your use case?
New laravel or existing project? Is there any URL to it?
did you tried composer dump-autoload
I just tested installation in a brand new laravel 5.5 and I get it working.
Give me some more details so I can help!
Steps:
Seeding... Seeding: VenueSeeder Venues seeding! Seeding: CategorySeeder Seeding: TournamentSeeder Seeding: CompetitorSeeder Competitors seeding!
[InvalidArgumentException]
Unable to locate factory with name [default] [Illuminate\Foundation\Auth\Us
er].
Ohh, I see.
For now, you can do this in database/factories/UserFactory
Replace
$factory->define(App\User::class, function (Faker $faker) {
By
$factory->define(Illuminate\Foundation\Auth\User::class, function (Faker $faker) {
WIth that, it should work, while I publish a fix.
I added --force to publish line in README.md, that should solve this issue
Confirmed resolved.
Hi, using Laravel 5.5, I ran into the following error when running
php artisan db:seed --class=LaravelTournamentSeeder.
[InvalidArgumentException]
Unable to locate factory with name [default] [Illuminate\Foundation\Auth\Us
er].