Last active
May 18, 2018 19:10
-
-
Save thannaske/37c50a1ab05ebcf7fb3c498316af01df to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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)); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment