database/factories/ProductFactory.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 [
            'name' => $this->faker->name,
            'price' => $this->faker->randomFloat(2, 0, 8),
            'description' => $this->faker->text
        ];
    }
public function definition ( ) { return [ 'name' => $ this -> faker -> name , 'price' => $ this -> faker -> randomFloat ( 2 , 0 , 8 ) , 'description' => $ this -> faker -> text ] ; }
Define the model's default state.
Define the model ' s default state .