Laravel 5.3 db:seed command simply doesn't work Laravel 5.3 db:seed command simply doesn't work laravel laravel

Laravel 5.3 db:seed command simply doesn't work


Are you calling your seeder inside the DatabaseSeeder class? This way:

database/seeds/DatabaseSeeder.php

class DatabaseSeeder extends Seeder{    /**     * Run the database seeds.     *     * @return void     */    public function run()    {        $this->call(QuotationTableSeeder::class);    }}

Or, add the --class option when using the php artisan db:seed command, this way:

php artisan db:seed --class="QuotationTableSeeder"

After creating or removing your seeders, don't forget to run the following command:

composer dump-autoload


NB:Please use with caution on DEV ENVIRONMENT and/or DISPOSABLE DATABASES ONLY

If anybody else is having issues with migrating AND seeding at the same time, please try

php artisan migrate:fresh --seed

Worked for me..