database/factories/ChapitreFactory.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->word(2),
            'contenu'=>$this->faker->sentence(100),
            'id_formation'=>$this->faker->numberBetween(1,10)
        ];
    }
public function definition ( ) { return [ 'nom' => $ this -> faker -> word ( 2 ) , 'contenu' => $ this -> faker -> sentence ( 100 ) , 'id_formation' => $ this -> faker -> numberBetween ( 1 , 10 ) ] ; }
Define the model's default state.
Define the model ' s default state .