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(),
            'description' => $this->faker->text(Product::DESCRIPTION_MAX_LENGTH),
            'cost' => $this->faker->randomFloat(8, 10, 1000),
        ];
    }
public function definition ( ) { return [ 'name' => $ this -> faker -> name ( ) , 'description' => $ this -> faker -> text ( Product :: DESCRIPTION_MAX_LENGTH ) , 'cost' => $ this -> faker -> randomFloat ( 8 , 10 , 1000 ) , ] ; }
Define the model's default state.
Define the model ' s default state .