From cf381c9e7d760065b374dc855881b28d6a8f86f4 Mon Sep 17 00:00:00 2001 From: Refringe Date: Tue, 17 Sep 2024 17:19:39 -0400 Subject: [PATCH] Method `syncWithoutDetaching` Expects Array --- 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 3fb00db..7182f42 100644 --- a/app/Models/User.php +++ b/app/Models/User.php @@ -75,7 +75,7 @@ class User extends Authenticatable implements MustVerifyEmail return; } - $this->following()->syncWithoutDetaching($userId); + $this->following()->syncWithoutDetaching([$userId]); } /**