database/factories/TestimonialFactory.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 [
            'description'=>$this->faker->sentence(),
            'photo'=>"testimonials-".$i.".jpg",  
            'nom'=>$this->faker->name(),
            'statut'=>$this->faker->word(),
        ];
    }
public function definition ( ) { static $ i = 0 ; $ i ++ ; return [ 'description' => $ this -> faker -> sentence ( ) , 'photo' => " testimonials- " . $ i . " .jpg " , 'nom' => $ this -> faker -> name ( ) , 'statut' => $ this -> faker -> word ( ) , ] ; }
Define the model's default state.
Define the model ' s default state .