mirror of
https://github.com/nothingworksinc/ticketbeast.git
synced 2026-02-05 21:49:10 +00:00
6.8 - Reserving Individual Tickets
This commit is contained in:
@@ -51,3 +51,12 @@ $factory->state(App\Concert::class, 'unpublished', function ($faker) {
|
||||
'published_at' => null,
|
||||
];
|
||||
});
|
||||
|
||||
|
||||
$factory->define(App\Ticket::class, function (Faker\Generator $faker) {
|
||||
return [
|
||||
'concert_id' => function () {
|
||||
return factory(App\Concert::class)->create()->id;
|
||||
},
|
||||
];
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user