3.7 - Cleaning Up Our Tests

This commit is contained in:
Adam Wathan
2016-11-15 16:10:45 -05:00
parent 9fe42a1aaa
commit 8abc8b19c9
5 changed files with 34 additions and 33 deletions

View File

@@ -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) {