mirror of
https://github.com/nothingworksinc/ticketbeast.git
synced 2026-01-31 11:46:45 +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