mirror of
https://github.com/koel/koel
synced 2024-11-10 14:44:13 +00:00
Indicate that Song IDs are not integers
This commit is contained in:
parent
012606d267
commit
13436730c5
1 changed files with 7 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue