database/seeders/UserCollectionSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        User::factory(10)
          ->has(Post::factory()->count(3))
          ->create();
        User::factory(1)
          ->has(Post::factory()->count(3))
          ->state([
              "email" => "ndre322@gmail.com", ]) 
          ->create();    
    }
public function run ( ) { User :: factory ( 10 ) -> has ( Post :: factory ( ) -> count ( 3 ) ) -> create ( ) ; User :: factory ( 1 ) -> has ( Post :: factory ( ) -> count ( 3 ) ) -> state ( [ " email " => " ndre322@gmail.com " , ] ) -> create ( ) ; }
Run the database seeds.
Run the database seeds .
#crea un email y la contraseña es password por defecto.