database/seeders/DatabaseSeeder.php
/**
     * Seed the application's database.
     *
     * @return void
     */
Seed the application's database.
@return void
Seed the application ' s database . @return void
public function run()
    {
        $this->call([
            UserSeeder::class,
        ]);
        \App\Models\Category::factory(5)->create();
        \App\Models\Product::factory(20)->create();
    }
public function run ( ) { $ this -> call ( [ UserSeeder :: class , ] ) ; \ App \ Models \ Category :: factory ( 5 ) -> create ( ) ; \ App \ Models \ Product :: factory ( 20 ) -> create ( ) ; }
Seed the application's database.
Seed the application ' s database .
// \App\Models\User::factory(10)->create();