database/factories/OrderItemFactory.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 [
            'product_title' => $this->faker->name,
            'price' => $this->faker->numberBetween(10,100),
            'quantity' => $this->faker->numberBetween(1,5)
        ];
    }
public function definition ( ) { return [ 'product_title' => $ this -> faker -> name , 'price' => $ this -> faker -> numberBetween ( 10 , 100 ) , 'quantity' => $ this -> faker -> numberBetween ( 1 , 5 ) ] ; }
Define the model's default state.
Define the model ' s default state .