1.5 - Refactoring for Speed

This commit is contained in:
Adam Wathan
2016-11-02 21:34:06 -04:00
parent 9e973974eb
commit eef25ae099
3 changed files with 34 additions and 11 deletions

View File

@@ -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);
}
}