fix "uuid must be a string"

This commit is contained in:
Boy132 2024-04-18 23:58:55 +02:00
parent ae189748f1
commit 50240933a0

View File

@ -177,7 +177,7 @@ class User extends Model implements AuthenticatableContract, AuthorizableContrac
protected static function booted(): void
{
static::creating(function (self $user) {
$user->uuid = Str::uuid();
$user->uuid = Str::uuid()->toString();
return true;
});