Answers for "create seed file laravel"

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
9

laravel make seeder

php artisan make:seeder NameOfTheSeeder
Posted by: Guest on May-15-2020
0

laravel 8 seeding

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

Browse Popular Code Answers by Language