-
Notifications
You must be signed in to change notification settings - Fork 230
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
Support for Laravel 8 - Unable to open CountriesSeeder.php #118
Comments
Here is a workaround.
|
I had the same error. Adding the file worked, but as you can see in the first error, it's referring to the wrong path.
I went to the file MigrationCommand.php and changed the line with the path from Mind the path in the first one still being called seeds in stead of seeders. |
That will fix this issue too. @chadriae However, changing that will affect other third-party libraries with a seeder in the correct location. Also, I wouldn't ever recommend changing vendor files directly. Or else they will be overriden by composer. Plus you should avoid tracking vendor with Git. |
Since Laravel8, seeders have been moved to
database/seeders
See here: https://laravel.com/docs/8.x/seeding
However currently the migration creation file tries to create the seeder at:
$seeder_file = $this->laravel->path."/../database/seeds/CountriesSeeder.php";
So this is failing with the error:
The text was updated successfully, but these errors were encountered: