mirror of
https://github.com/nothingworksinc/ticketbeast.git
synced 2026-01-26 11:14:06 +00:00
6.9 - Respecting Reservations
This commit is contained in:
@@ -58,7 +58,9 @@ class Concert extends Model
|
||||
|
||||
public function reserveTickets($quantity)
|
||||
{
|
||||
return $this->findTickets($quantity);
|
||||
return $this->findTickets($quantity)->each(function ($ticket) {
|
||||
$ticket->reserve();
|
||||
});
|
||||
}
|
||||
|
||||
public function findTickets($quantity)
|
||||
|
||||
Reference in New Issue
Block a user