Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Laravel 5.7 Class App\Http\Controllers\Auth\VerificationController does not exist

Tags:

laravel-5

When I add ['verify' => true] parameter to web auth routes like so

Auth::routes(['verify' => true]);

I cannot see routes when calling

$ php artisan route:list

instead of a table I'm getting:

ReflectionException : Class App\Http\Controllers\Auth\VerificationController does not exist

And it is truth, I don't have a file called VerificationController nowhere on my computer.

I'm currently on laravel/framework version 5.7.20

like image 600
Yevgeniy Afanasyev Avatar asked Aug 22 '26 14:08

Yevgeniy Afanasyev


1 Answers

the Upgrade Guide when Upgrading To 5.7.0 From 5.6 suggests to make a controller manually in the Email Verification section.

this is a VerificationController.php that officially should be used in this case

like image 128
Yevgeniy Afanasyev Avatar answered Aug 24 '26 11:08

Yevgeniy Afanasyev



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!