database/factories/FormationFactory.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 [
            'description'=>$this->faker->sentence(25),
            'nom'=> $this->faker->sentence,
            'prix'=>$this->faker->randomFloat(2,50,5000),
            'user_id'=>$this->faker->numberBetween(1,5),
        ];
    }
public function definition ( ) { return [ 'description' => $ this -> faker -> sentence ( 25 ) , 'nom' => $ this -> faker -> sentence , 'prix' => $ this -> faker -> randomFloat ( 2 , 50 , 5000 ) , 'user_id' => $ this -> faker -> numberBetween ( 1 , 5 ) , ] ; }
Define the model's default state.
Define the model ' s default state .