database/factories/TypeFactory.php
/**
     * Define the model's default state.
     *
     * @return array
     */
Define the model's default state.
@return array
Define the model ' s default state . @return array
public function definition()
    {
        return [
            'nom'=> $this->faker->unique()->randomElement(['Dragon','Eau','Electrik','Feu','Glace','Plante','Psy','Ténèbres'])
        ];
    }
public function definition ( ) { return [ 'nom' => $ this -> faker -> unique ( ) -> randomElement ( [ 'Dragon' , 'Eau' , 'Electrik' , 'Feu' , 'Glace' , 'Plante' , 'Psy' , 'Ténèbres']) ] ; }
Define the model's default state.
Define the model ' s default state .