5.3 - Preparing for Extraction

This commit is contained in:
Adam Wathan
2016-11-17 21:17:48 -05:00
parent e0f49677d8
commit 3c41fcc4f0
4 changed files with 14 additions and 4 deletions

View File

@@ -17,4 +17,14 @@ class Ticket extends Model
{
$this->update(['order_id' => null]);
}
public function concert()
{
return $this->belongsTo(Concert::class);
}
public function getPriceAttribute()
{
return $this->concert->ticket_price;
}
}