mirror of
https://github.com/nothingworksinc/ticketbeast.git
synced 2026-02-02 05:47:41 +00:00
1.5 - Refactoring for Speed
This commit is contained in:
@@ -13,4 +13,14 @@ class Concert extends Model
|
||||
{
|
||||
return $this->date->format('F j, Y');
|
||||
}
|
||||
|
||||
public function getFormattedStartTimeAttribute()
|
||||
{
|
||||
return $this->date->format('g:ia');
|
||||
}
|
||||
|
||||
public function getTicketPriceInDollarsAttribute()
|
||||
{
|
||||
return number_format($this->ticket_price / 100, 2);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user