Open ionwebs opened 4 years ago
Same error here
i also got similar : Route [verification.resend] not defined. (dirname...\views\auth\verify.blade.php) I'am use laravel 8.x case i try mix laravel/ui and fortify. delete the controller/auth. swith use auth from fortify . fortify have difference route name. for check php artisan route:list . at u can see name route. have a verification.resend or no ?
in the documentation : " you may add a button to your application's verify-email template that triggers a POST request to the /email/verification-notification endpoint." https://laravel.com/docs/8.x/fortify#resending-email-verification-links
in the route:list route : /email/verification-notification have name verification.send not verification.resend. email/verification-notification | verification.send | Laravel\Fortify\Http\Controllers\EmailVerificationNotificationController@store
so try change the route name in ur view. like this < form class="d-inline" method="POST" action="{{ route('verification.send') }}" >
< form class="d-inline" method="POST" action="{{ route('verification.send') }}" > @csrf < button type="submit" class="btn btn-link p-0 m-0 align-baseline">{{ __('click here to request another') }}</button >. < /form >
in routes/web.php add three lines...
function () {
Auth::routes();
Route::get('/', 'ResourceController@home')->name('home');
Route::get('login/{provider}', 'Auth\SocialAuthController@redirectToProvider');
**Route::get('email/verify', 'Auth\VerificationController@show')->name('verification.notice');
Route::get('email/verify/{id}', 'Auth\VerificationController@verify')->name('verification.verify');
Route::get('email/resend', 'Auth\VerificationController@resend')->name('verification.resend');**
Route::group(['prefix' => 'user'], function () {
Hi,
I am getting below error after login as client
Route [verification.resend] not defined. (View: public\themes\client\views\auth\verify.blade.php)
Any solution?
Thanks