0
votes

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

1
Have you run php artisan make:auth? If you upgraded from 5.6, you may want to start a new laravel app run make:auth and then copy the new Controller into your upgraded 5.7 instance. - Azeame
Yes, I upgraded from 5.6, but No, I did not run make:auth, the Upgrade Guide does not say that I need running php artisan make:auth - Yevgeniy Afanasyev

1 Answers

4
votes

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