fix: random generated uuid will be full length (not 7 characters)

This commit is contained in:
Andras Bacsai committed 2024-07-25 13:31:01 +02:00
1 parent debd2a3433
commit 6a4aa492c0
31 files changed
+54 -54

No files matched your search

+1 -1
View File
@@ -14,7 +14,7 @@ abstract class BaseModel extends Model
static::creating(function (Model $model) {
// Generate a UUID if one isn't set
if (! $model->uuid) {
$model->uuid = (string) new Cuid2(7);
$model->uuid = (string) new Cuid2();
}
});
}