$user->group = Auth::group->get_id( 'coordinators' ); $user->save();As far as I can tell, there's nothing like that. It seems the easiest way to assign a user to a group is just to change the value of $user->group to the group's id itself. But using the group name is much more readable, I think. The only way I can think of to do this is to grab the groups from the simpleauth config file and loop through them to match the name and get the id. Is there a better way? Thanks for any help!
It looks like you're new here. If you want to get involved, click one of these buttons!