Merge branch 'master' into 1.1

This commit is contained in:
An Phan 2015-12-21 10:17:27 +08:00
commit 381751046e

View file

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