Answers for "how to use seeder in laravel 8"

PHP
21

laravel run seed

#All of them
php artisan db:seed
#One class
php artisan db:seed --class=UserSeeder
Posted by: Guest on May-08-2020
1

laravel run seeder

php artisan migrate:fresh --seed
Posted by: Guest on August-30-2020
0

php artisan db seed

php artisan db:seed
Posted by: Guest on May-16-2020
0

laravel database seeder medium

php artisan make:seeder ArticlesTableSeeder
Posted by: Guest on June-16-2020
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

Browse Popular Code Answers by Language