mirror of
https://github.com/nothingworksinc/ticketbeast.git
synced 2026-02-04 22:48:38 +00:00
3.7 - Cleaning Up Our Tests
This commit is contained in:
@@ -13,6 +13,11 @@ class Order extends Model
|
||||
return $this->hasMany(Ticket::class);
|
||||
}
|
||||
|
||||
public function ticketQuantity()
|
||||
{
|
||||
return $this->tickets()->count();
|
||||
}
|
||||
|
||||
public function cancel()
|
||||
{
|
||||
foreach ($this->tickets as $ticket) {
|
||||
|
||||
Reference in New Issue
Block a user