3

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

2
  • 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. Commented Jan 13, 2019 at 1:52
  • 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 Commented Jan 13, 2019 at 20:25

1 Answer 1

6

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

Sign up to request clarification or add additional context in comments.

2 Comments

This is basically the same thing as what I said you needed to do, but I thought the Controller only appeared when you run make:auth
Yes, thank you. This advise I got as an answer to my issue on github

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.