LavaLite / framework

Litepie framework
60 stars 41 forks source link

Route [verification.resend] not defined. (View:public\themes\client\views\auth\verify.blade.php) #52

Open ionwebs opened 4 years ago

ionwebs commented 4 years ago

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

elianbarci commented 4 years ago

Same error here

naagaraa commented 3 years ago

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') }}" >

test < 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 >

brucelyc commented 3 years ago

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 () {