mirror of
https://github.com/nothingworksinc/ticketbeast.git
synced 2026-03-18 09:05:28 +00:00
127 - Calculating Tickets Sold
This commit is contained in:
@@ -99,4 +99,9 @@ class Concert extends Model
|
||||
{
|
||||
return $this->tickets()->available()->count();
|
||||
}
|
||||
|
||||
public function ticketsSold()
|
||||
{
|
||||
return $this->tickets()->sold()->count();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user