Added release year to albums

This commit is contained in:
gballan1 committed 2016-11-29 11:43:11 -05:00
1 parent 27436feba2
commit d2ac8ca371
3 files changed
+6 -2

No files matched your search

+4
View File
@@ -19,4 +19,8 @@ class Album extends Eloquent {
return $this->hasMany('Fieldprotocol\Music\Song');
}
public function releaseYear() {
return date('%Y', strtotime($this->release_date));
}
}