芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/rentandbuyrealty.com/pennysave/application/routes/user.php
name('user.')->group(function () { Route::controller('LoginController')->group(function(){ Route::get('/login', 'showLoginForm')->name('login'); Route::post('/login', 'login'); Route::get('logout', 'logout')->name('logout'); }); Route::controller('RegisterController')->group(function(){ Route::get('register', 'showRegistrationForm')->name('register'); Route::post('register', 'register')->middleware('registration.status'); Route::post('check-mail', 'checkUser')->name('checkUser'); }); Route::controller('ForgotPasswordController')->group(function(){ Route::get('password/reset', 'showLinkRequestForm')->name('password.request'); Route::post('password/email', 'sendResetCodeEmail')->name('password.email'); Route::get('password/code-verify', 'codeVerify')->name('password.code.verify'); Route::post('password/verify-code', 'verifyCode')->name('password.verify.code'); }); Route::controller('ResetPasswordController')->group(function(){ Route::post('password/reset', 'reset')->name('password.update'); Route::get('password/reset/{token}', 'showResetForm')->name('password.reset'); }); }); Route::middleware('auth')->name('user.')->group(function () { //authorization Route::namespace('User')->controller('AuthorizationController')->group(function(){ Route::get('authorization', 'authorizeForm')->name('authorization'); Route::get('resend/verify/{type}', 'sendVerifyCode')->name('send.verify.code'); Route::post('verify/email', 'emailVerification')->name('verify.email'); Route::post('verify/mobile', 'mobileVerification')->name('verify.mobile'); Route::post('verify/g2fa', 'g2faVerification')->name('go2fa.verify'); }); Route::middleware(['check.status'])->group(function () { Route::get('user/data', 'User\UserController@userData')->name('data'); Route::post('user/data/submit', 'User\UserController@userDataSubmit')->name('data.submit'); Route::middleware('registration.complete')->namespace('User')->group(function () { Route::controller('UserController')->group(function(){ Route::get('dashboard', 'home')->name('home'); //2FA Route::get('twofactor', 'show2faForm')->name('twofactor'); Route::post('twofactor/enable', 'create2fa')->name('twofactor.enable'); Route::post('twofactor/disable', 'disable2fa')->name('twofactor.disable'); Route::get('attachment-download/{fil_hash}','attachmentDownload')->name('attachment.download'); // Wish List Route::get('wishlist','addWishlist')->name('wishlist.add'); Route::get('wishlist/remove/{id}','removeWishlist')->name('wishlist.remove'); Route::get('wishlist-list','myWishlist')->name('my.wishlist'); //2FA Route::get('twofactor', 'show2faForm')->name('twofactor'); Route::post('twofactor/enable', 'create2fa')->name('twofactor.enable'); Route::post('twofactor/disable', 'disable2fa')->name('twofactor.disable'); //Report Route::any('deposit/history', 'depositHistory')->name('deposit.history'); Route::get('transactions','transactions')->name('transactions'); Route::get('attachment-download/{fil_hash}','attachmentDownload')->name('attachment.download'); }); //Profile setting Route::controller('ProfileController')->group(function(){ Route::get('profile/setting', 'profile')->name('profile.setting'); Route::post('profile/setting', 'submitProfile')->name('profile.update'); Route::get('change-password', 'changePassword')->name('change.password'); Route::post('change-password', 'submitPassword'); Route::post('profile', 'imageUpdate')->name('profile.update'); }); // Coupons Route::controller('CouponController')->name('coupons.')->prefix('coupon')->group(function(){ Route::get('/','index')->name('index'); Route::post('store','store')->name('store'); Route::get('create','create')->name('create'); Route::get('edit/{id}','edit')->name('edit'); Route::post('update/{id}','update')->name('update'); Route::get('active','active')->name('active'); Route::get('pending','pending')->name('pending'); }); // Store Route::controller('StoreController')->name('store.')->prefix('store')->group(function(){ Route::get('/', 'index')->name('index'); Route::get('/create', 'create')->name('create'); Route::post('/store', 'store')->name('store'); Route::get('/edit/{id}', 'edit')->name('edit'); Route::post('/update/{id}', 'update')->name('update'); Route::get('/active', 'active')->name('active'); Route::get('/pending', 'pending')->name('pending'); Route::post('change','changeStatus')->name('status.change'); }); }); // Payment Route::middleware('registration.complete')->controller('Gateway\PaymentController')->group(function(){ Route::any('/plan/payment/{id}', 'planPayment')->name('plan.payment'); Route::any('/deposit', 'deposit')->name('deposit'); Route::post('deposit/insert', 'depositInsert')->name('deposit.insert'); Route::get('deposit/confirm', 'depositConfirm')->name('deposit.confirm'); Route::get('deposit/manual', 'manualDepositConfirm')->name('deposit.manual.confirm'); Route::post('deposit/manual', 'manualDepositUpdate')->name('deposit.manual.update'); }); }); });