database/factories/FeatureFactory.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()
    {
        static $i = 0;
        $i++;
        return [
            'image'=>"features-".$i.".png",
            'titre'=>$this->faker->sentence(),
            'sous_titre'=>$this->faker->paragraph(),
            'description1'=>$this->faker->sentence(),
            'description2'=>$this->faker->sentence(),
            'description3'=>$this->faker->sentence(),
        ];
    }
public function definition ( ) { static $ i = 0 ; $ i ++ ; return [ 'image' => " features- " . $ i . " .png " , 'titre' => $ this -> faker -> sentence ( ) , 'sous_titre' => $ this -> faker -> paragraph ( ) , 'description1' => $ this -> faker -> sentence ( ) , 'description2' => $ this -> faker -> sentence ( ) , 'description3' => $ this -> faker -> sentence ( ) , ] ; }
Define the model's default state.
Define the model ' s default state .