File "SendEmailVerificationNotification.php"

Full Path: /home/fundopuh/trader.fxex.org/vendor/laravel/framework/src/Illuminate/Auth/Events/SendEmailVerificationNotification.php
File size: 526 bytes
MIME-type: text/x-php
Charset: utf-8

<?php

namespace Illuminate\Auth\Listeners;

use Illuminate\Auth\Events\Registered;
use Illuminate\Contracts\Auth\MustVerifyEmail;

class SendEmailVerificationNotification
{
    /**
     * Handle the event.
     *
     * @param  \Illuminate\Auth\Events\Registered  $event
     * @return void
     */
    public function handle(Registered $event)
    {
        if ($event->user instanceof MustVerifyEmail && ! $event->user->hasVerifiedEmail()) {
            $event->user->sendEmailVerificationNotification();
        }
    }
}