mirror of
https://github.com/nothingworksinc/ticketbeast.git
synced 2026-02-02 13:47:48 +00:00
5.3 - Preparing for Extraction
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user