Method syncWithoutDetaching Expects Array

This commit is contained in:
Refringe 2024-09-17 17:19:39 -04:00
parent db259e2689
commit cf381c9e7d
Signed by: Refringe
SSH Key Fingerprint: SHA256:t865XsQpfTeqPRBMN2G6+N8wlDjkgUCZF3WGW6O9N/k

View File

@ -75,7 +75,7 @@ class User extends Authenticatable implements MustVerifyEmail
return; return;
} }
$this->following()->syncWithoutDetaching($userId); $this->following()->syncWithoutDetaching([$userId]);
} }
/** /**