Chron
4 months ago

Email Verification

Posted 4 months ago by Chron
Auth::routes(['verify' => true]);

I see this in the documentation,but what if I made a custom register and login routes? Where can I add "'verify' => true"?

Like this.

Route::namespace('Admin')->group(function (){
    Route::prefix('admin')->group(function (){
        Route::namespace('AdminAuth')->group(function (){
            Route::post('login', '[email protected]');
            Route::post('register', '[email protected]');
            Route::name('admin.')->group(function (){
                Route::get('login', '[email protected]')->name('login');
                Route::post('logout', '[email protected]')->name('logout');
                Route::post('password/email', '[email protected]')->name('password.email');
                Route::get('password/reset', '[email protected]')->name('password.request');
                Route::post('password/reset', '[email protected]')->name('password.update');
                Route::post('password/reset/{token}', '[email protected]')->name('password.reset');
                Route::get('register', '[email protected]')->name('register');
            });
        });
    });
});

Please sign in or create an account to participate in this conversation.