Skip to content

Instantly share code, notes, and snippets.

@thannaske
Last active May 18, 2018 19:10
Show Gist options
  • Save thannaske/37c50a1ab05ebcf7fb3c498316af01df to your computer and use it in GitHub Desktop.
Save thannaske/37c50a1ab05ebcf7fb3c498316af01df to your computer and use it in GitHub Desktop.
<?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