Indicate that Song IDs are not integers

This commit is contained in:
An Phan 2016-01-05 10:54:27 +08:00
parent 012606d267
commit 13436730c5

View file

@ -25,10 +25,16 @@ class Song extends Model
* @var array
*/
protected $casts = [
'id' => 'string',
'length' => 'float',
];
/**
* Indicates if the IDs are auto-incrementing.
*
* @var bool
*/
public $incrementing = false;
public function album()
{
return $this->belongsTo(Album::class);