mirror of
https://github.com/nothingworksinc/ticketbeast.git
synced 2026-01-26 11:14:06 +00:00
48 - Cleaning up a Loose Variable
This commit is contained in:
@@ -16,6 +16,11 @@ class Reservation
|
||||
return $this->tickets->sum('price');
|
||||
}
|
||||
|
||||
public function tickets()
|
||||
{
|
||||
return $this->tickets;
|
||||
}
|
||||
|
||||
public function cancel()
|
||||
{
|
||||
foreach ($this->tickets as $ticket) {
|
||||
|
||||
Reference in New Issue
Block a user