fix BookingProductEventTicketFactory

This commit is contained in:
Florian Bosdorff 2020-06-30 10:48:46 +02:00
parent e480c6cda4
commit 81e71b413e
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ use Webkul\Product\Models\Product;
$factory->define(BookingProductEventTicket::class, function (Faker $faker, array $attributes) {
return [
'price' => $faker->randomFloat(4, 3, 900),
'qty' => $faker->randomNumber(2),
'qty' => $faker->numberBetween(1, 99),
'booking_product_id' => static function () {
return factory(BookingProduct::class)->create(['type' => 'event'])->id;
}