full-receptionist-33755
12/17/2023, 9:25 AMfuture-teacher-7046
$groups
. You just need to either use single quotes or escape the $
symbol.
withAttributes([
'id' => $userId,
'$groups' => ["group1"]
]);
full-receptionist-33755
12/18/2023, 9:32 AMfull-receptionist-33755
12/18/2023, 10:07 AMrhythmic-agent-34208
12/19/2023, 10:05 PM