I’m trying to update the user email after the user has been created (because I don’t need and want to store user emails for this particular project) and I thought about using the user.create:after hook to update the current user email.
Apparently that doesn’t seem to work.
I’m doing the following
'user.create:after' => function($user) {
if ($user->role() != 'supporter')
return;
$user->update(['email' => 'email@email.com']);
}
Any reason why this isn’t working? The update itself is working if I try to update something else (like the user name for example).