mirror of
https://github.com/koel/koel
synced 2024-11-24 13:13:05 +00:00
Merge branch 'master' into 1.1
This commit is contained in:
commit
381751046e
1 changed files with 7 additions and 0 deletions
|
@ -21,6 +21,13 @@ class Song extends Model
|
|||
*/
|
||||
protected $hidden = ['lyrics', 'created_at', 'updated_at', 'path', 'mtime'];
|
||||
|
||||
/**
|
||||
* @var array
|
||||
*/
|
||||
protected $casts = [
|
||||
'length' => 'float'
|
||||
];
|
||||
|
||||
public function album()
|
||||
{
|
||||
return $this->belongsTo(Album::class);
|
||||
|
|
Loading…
Reference in a new issue