mirror of
https://github.com/nothingworksinc/ticketbeast.git
synced 2026-02-08 02:50:32 +00:00
6.8 - Reserving Individual Tickets
This commit is contained in:
@@ -56,6 +56,11 @@ class Concert extends Model
|
||||
return $this->createOrder($email, $tickets);
|
||||
}
|
||||
|
||||
public function reserveTickets($quantity)
|
||||
{
|
||||
return $this->findTickets($quantity);
|
||||
}
|
||||
|
||||
public function findTickets($quantity)
|
||||
{
|
||||
$tickets = $this->tickets()->available()->take($quantity)->get();
|
||||
|
||||
Reference in New Issue
Block a user