programmatically sending email verification error
wemteqdev opened this issue · comments
I am going to integrate email verification with React and I need to implement the sending email verification API.
$this->app->make('Lunaweb\EmailVerification\EmailVerification')->sendVerifyLink($user);
so, when I run this code, it occurs error.
Illuminate\Auth\RequestGuard::getDispatcher does not exist
I think this error is coming from service provider (Auth::getDispatcher())
$this->app->singleton(\Lunaweb\EmailVerification\EmailVerification::class, function ($app) {
return new EmailVerification(
Auth::getProvider(),
Auth::getDispatcher(),
config('app.key'),
config('emailverification.expire', 1440)
);
});
My laravel version is 5.6.x
I decided to use email verification of laravel 5.7