mirror of
https://github.com/nothingworksinc/ticketbeast.git
synced 2026-02-05 07:48:47 +00:00
44 - Cancelling Reservations
This commit is contained in:
@@ -15,4 +15,11 @@ class Reservation
|
||||
{
|
||||
return $this->tickets->sum('price');
|
||||
}
|
||||
|
||||
public function cancel()
|
||||
{
|
||||
foreach ($this->tickets as $ticket) {
|
||||
$ticket->release();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user