Added release year to albums
This commit is contained in:
@ -19,4 +19,8 @@ class Album extends Eloquent {
|
||||
return $this->hasMany('Fieldprotocol\Music\Song');
|
||||
}
|
||||
|
||||
public function releaseYear() {
|
||||
return date('%Y', strtotime($this->release_date));
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user