gitscrum-team / laravel-gitscrum

GitScrum is a Project Management Tool, developed to help entrepreneurs, freelancers, managers, and teams Skyrocket their Productivity with the Agile methodology and Gamification.

Home Page:https://site.gitscrum.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error when process seeders

meredyk opened this issue · comments

When run php artisan migrate:refresh --seed command, the DatabaseSeeder class does not exist error is displayed

i had this problem too. Was able to get around it by copying database/seeds/SettingSeeder.php and renaming it as DatabaseSeeder.php. Changed the class name to DatabaseSeeder. Then in my composer.json file make sure autoload, classmap includes the seeder folder, eg. (note i think i'm being redundant with the folders...just wanted to get it to work)
"autoload": {
"classmap": [
"database",
"app/Models",
"database/seeds",
"database/migrations"
],

Yeh, I did this to solve the problem. I think I'll send a push to update this inconsistency.
Tnx

Just need to run:
php artisan db:seed --class=SettingSeeder

@AgusRdz for me, the problem this also is:

php artisan db:seed --class=SettingSeeder

[ReflectionException]
Class SettingSeeder does not exist

this is working: php artisan db:seed

Seeding: ConfigIssueEffortsTableSeeder
Seeding: ConfigPrioritiesTableSeeder
Seeding: IssueTypesTableSeeder
Seeding: ConfigStatusesTableSeeder

Hi @meredyk,
Can I close the issue?

Yes, please