Framework: [8.x] Problem with EmailVerificationRequest

Created on 18 Sep 2020  路  2Comments  路  Source: laravel/framework

Laravel : 8.x
PHP : 7.6.4

I make all from documentation (https://laravel.com/docs/8.x/verification), almost all works fine, but when i click link from email, i have :

IlluminateContractsContainerBindingResolutionException
Target class [IlluminateFoundationAuthEmailVerificationRequest] does not exist.

in route/web.php (as documentation says

use IlluminateFoundationAuthEmailVerificationRequest;
Route::get('/email/verify/{id}/{hash}', function (EmailVerificationRequest $request) {
$request->fulfill();
return redirect('/home');
})->middleware(['auth', 'signed'])->name('verification.verify');

I dont know what happens.

Most helpful comment

@HelDoRe Just upgrade laravel, this class was missing in first versions of 8.x.

composer update

All 2 comments

Hasn't been tagged yet. I'm going to this afternoon.

@HelDoRe Just upgrade laravel, this class was missing in first versions of 8.x.

composer update

Was this page helpful?
0 / 5 - 0 ratings