4 months ago

SendEmailVerificationNotification to a dynamic email

Posted 4 months ago by Chron

For example, admin makes an account for [email protected], [email protected] now receives a verification message to use the application.

$admin = $account->admin()->create([
        'firstname' => $request['firstname'],
        'middlename' => $request['middlename'],
        'lastname' => $request['lastname'],
        'extension_name' => $request['extension_name'],
        'date_of_birth' => $request['date_of_birth'],
        'address' => $request['address'],
        'contact_number' => $request['contact_number'],
$admin->account()->update(['password' => generatedPassword()]);
$request['email']->sendEmailVerificationNotification(); //assuming the email has been filtered and validated.

But I think it doesn't work, I didn't received any emails.

Here's my logic.

The 1st user creates another user, so if the 1st user inputs email, for example, '[email protected]', the user that owns that email will get an email verification to use the app.

Please sign in or create an account to participate in this conversation.