mirror of
https://github.com/nothingworksinc/ticketbeast.git
synced 2026-01-26 03:04:05 +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;
|
||||
},
|
||||
];
|
||||
});
|
||||
|
||||
@@ -17,6 +17,7 @@ class CreateTicketsTable extends Migration
|
||||
$table->increments('id');
|
||||
$table->unsignedInteger('concert_id');
|
||||
$table->unsignedInteger('order_id')->nullable();
|
||||
$table->datetime('reserved_at')->nullable();
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user