Oct 31, 2018
0
Level 7
Email verification event is not firing in Spark 7
I set up email verification on my Spark 7 app. The email is not sending when a register event is fired, but it's working when users click on "request another".
This is my code for the event:
<?php
namespace App\Providers;
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
class EventServiceProvider extends ServiceProvider
{
/**
* The event listener mappings for the application.
*
* @var array
*/
protected $listen = [
// Other Spark events...
// Verification email
'Illuminate\Auth\Events\Registered' => [
'Illuminate\Auth\Listeners\SendEmailVerificationNotification',
],
];
/**
* Register any other events for your application.
*
* @return void
*/
public function boot()
{
parent::boot();
//
}
}
Both files exist. Why is this the Registered event not firing the SendEmailVerification?
Please or to participate in this conversation.