Kareem Elsharkawy
Kareem Elsharkawy

Reputation: 439

How to send the email verification email from Laravel 5.7 from custom route

I need to Send Active Link From My Route

 Route::get('user/{user}/settings', 'UserController@settings');

I tried this but it goes to main page

     <a href="{{ route('verification.resend') }}">{{ __('click here to request another') }}</a>

Upvotes: 4

Views: 1113

Answers (1)

Koen Hollander
Koen Hollander

Reputation: 1701

Laravel includes the Auth\VerificationController class that contains the necessary logic to send verification links and verify emails. To register the necessary routes for this controller, pass the verify option to the Auth::routes method:

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

(From https://laravel.com/docs/5.7/verification)

Upvotes: 1

Related Questions