Hi,
If I have for instance four custom roles and use a front-end user registration form, may I choose the role when I create the user with the function:
$users->create($data = array())
In the documentation, I don’t see any “role” parameter:
$user = $site->users()->create(array(
'username' => 'john',
'email' => 'john@doe.com',
'password' => 'secretpasswordwillbeencrypted',
'firstName' => 'John',
'lastName' => 'Doe'
));