1.4 - Unit Testing Presentation Logic

This commit is contained in:
Adam Wathan
2016-11-02 14:54:34 -04:00
parent b49dcfabe3
commit 9e973974eb
4 changed files with 50 additions and 1 deletions

View File

@@ -8,4 +8,9 @@ class Concert extends Model
{
protected $guarded = [];
protected $dates = ['date'];
public function getFormattedDateAttribute()
{
return $this->date->format('F j, Y');
}
}