database/factories/ProductFactory.php
/**
     * Define the model's default state.
     *
     * @return array<string, mixed>
     */
Define the model's default state.
@return array
Define the model ' s default state . @return array
public function definition()
    {
        return [
            'title' => $this->faker->name,
            'description' => $this->faker->text,
            'image' => $this->faker->imageUrl(),
            'price' => $this->faker->numberBetween(10,200)
        ];
    }
public function definition ( ) { return [ 'title' => $ this -> faker -> name , 'description' => $ this -> faker -> text , 'image' => $ this -> faker -> imageUrl ( ) , 'price' => $ this -> faker -> numberBetween ( 10 , 200 ) ] ; }
Define the model's default state.
Define the model ' s default state .