I would like during registration the user can choose a group, and register users by to their group
for example at registration there are 2 groups, "freelancer" and "employer"
Thank you for your help
I would like during registration the user can choose a group, and register users by to their group
for example at registration there are 2 groups, "freelancer" and "employer"
Thank you for your help
Copyright © 2021 Jogjafile Inc.
I don't believe you can do this with the existing user plugin Account component. Mostly because it uses Auth::register() to save the new user and there is no relation saving there.
You could create your own component that extends the account component and from your own form call onRegisterPlus() function.
You would make your form as mentioned and include checkboxes named 'groups[]' with the value of the groups you want available.