Do you call a different Seeder class inside the DatabaseSeeder parent class; or is everything written into \Database\Seeders\DatabaseSeeder???
Show that \Database\Seeders\DatabaseSeeder class
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I've a problem lately, I just started a 7.x Laravel project and, by the project requirements, , i need to use seeders to setup the system for usage, but for some unknown reason the "\Database\Seeders\DatabaseSeeder" class is not being called, i tried creating a single record on the database, using the methods: Model::create(), Model::insert(), DB::table()->insert(), and not a single one of those worked, the console outputs "Database seeding completed successfully." but no record was inserted on the database. I already checked the database connection with the "php artisan tinker" and tested all the methods that I tried on the seeder again, and all of them where inserted correctly on the database, I don't know if I am missing something on the configuration or installation that sets up the seeding procedure, but I couldn't figure out what i did wrong.
I even tried to throw an exception to see if the seeder is called, and i still got the the "Database seeding completed successfully." result from the "php artisan db:seed" command.
@LucasDiniz very odd. Is that DatabaseSeeder class in its right place; i.e. in the default composer.json file, the Database\Seeders namespace is mapped to "database/seeders/" directory?
Please or to participate in this conversation.