for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App\Listeners;
use Illuminate\Auth\Events\Registered;
use Illuminate\Contracts\Auth\MustVerifyEmail;
class SendCustomEmailVerificationNotification
{
public function handle(Registered $event)
if (($event->user->providers === null || empty($event->user->providers)) && $event->user instanceof MustVerifyEmail && ! $event->user->hasVerifiedEmail()) {
providers
Illuminate\Contracts\Auth\Authenticatable
instanceof
$event->user->sendEmailVerificationNotification();
}