From 50240933a07b3e60d6023a8efbafc7ef813bd2bf Mon Sep 17 00:00:00 2001 From: Boy132 Date: Thu, 18 Apr 2024 23:58:55 +0200 Subject: [PATCH] fix "uuid must be a string" --- app/Models/User.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/User.php b/app/Models/User.php index 33905ae55..b50dba9f0 100644 --- a/app/Models/User.php +++ b/app/Models/User.php @@ -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; });