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]); } /**