Laravel Tips

@Shoaib

2/2. UUID in eloquent.php

class Article extends Model
{
use HasFactory, CanBeScoped, Searchable, NestableComments;

protected $casts = [
'id' => 'string'
];
protected $primaryKey = 'id';
protected $keyType = 'string';
}