fix BookingProductEventTicketFactory
This commit is contained in:
parent
e480c6cda4
commit
81e71b413e
|
|
@ -11,7 +11,7 @@ use Webkul\Product\Models\Product;
|
||||||
$factory->define(BookingProductEventTicket::class, function (Faker $faker, array $attributes) {
|
$factory->define(BookingProductEventTicket::class, function (Faker $faker, array $attributes) {
|
||||||
return [
|
return [
|
||||||
'price' => $faker->randomFloat(4, 3, 900),
|
'price' => $faker->randomFloat(4, 3, 900),
|
||||||
'qty' => $faker->randomNumber(2),
|
'qty' => $faker->numberBetween(1, 99),
|
||||||
'booking_product_id' => static function () {
|
'booking_product_id' => static function () {
|
||||||
return factory(BookingProduct::class)->create(['type' => 'event'])->id;
|
return factory(BookingProduct::class)->create(['type' => 'event'])->id;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue