Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace App\Listeners;
- use Illuminate\Support\Facades\Mail;
- use Illuminate\Auth\Events\Registered;
- class UserRegistered
- {
- * Handle the event.
- *
- * @param object $event
- * @return void
- */
- public function handle(Registered $event)
- {
- Mail::to($event->email)->send(new ConfirmUserMail($event));
- }
- }
Add Comment
Please, Sign In to add comment