Answers for "how seed all seeder in larave"

1

how to make db seeder in laravel

php artisan make:seeder UsersTableSeeder
Posted by: Guest on January-06-2021
0

how seed all seeder in larave

/**
 * Run the database seeders.
 *
 * @return void
 */
public function run()
{
    $this->call([
        UserSeeder::class,
        PostSeeder::class,
        CommentSeeder::class,
    ]);
}



php artisan db:seed

php artisan db:seed --class=UserSeeder
Posted by: Guest on July-11-2021

Code answers related to "how seed all seeder in larave"

Browse Popular Code Answers by Language