📌  相关文章
📜  laravel 运行所有播种机 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:00.730000             🧑  作者: Mango

代码示例6
let's see simple example:

you can use following command to all seeders in laravel application:
***************************
   php artisan db:seed
***************************
you have to register all seeder in DatabaseSeeder.php file and that will run all seeders at a time, register as like bellow:

database/seeders/DatabaseSeeder.php

call([
            UserSeeder::class
            AdminSeeder::class
        ]);
    }
}