Current File : /home/tradevaly/www/routes/frontend.php
<?php
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Route;

  Route::group(['prefix'=> '/', 'as'=> 'front.','middleware' => "maintaince"],function(){
      Route::group(['prefix'=> '/user', 'as'=> 'user.'],function(){
          
        //   Register Route
        Route::get('register','AuthenticationController@register')->name('register');
        Route::post('register/store','AuthenticationController@store')->name('register.store');
        
        // verification route
        Route::get('verification','AuthenticationController@verify')->name('verify');
        Route::post('verification/check','AuthenticationController@verify_check')->name('verify.check');
        Route::get('verification/resend','AuthenticationController@resend')->name('verify.resend')->middleware('auth');
        
        // login route
        Route::get('login','AuthenticationController@login')->name('login');
        Route::post('login/switch','AuthenticationController@login_switch')->name('login.switch');
        
        // Forget password
        Route::get('forget','AuthenticationController@forget')->name('forget');
        Route::post('forget/codesend','AuthenticationController@forget_codesend')->name('forget.codesend');
        Route::get('forget/code/{email}','AuthenticationController@forget_code')->name('forget.code');
        Route::post('forget/code_check','AuthenticationController@code_check')->name('forget.code_check');
        Route::get('forget/{email}/new/{time}/password/{id}','AuthenticationController@new_password')->name('forget.new_password');
        Route::post('forget/change_password/{email}','AuthenticationController@change_password')->name('forget.change_password');
        
     });
     
      Route::group(['prefix'=> '/advertiser', 'as'=> 'advertiser.'],function(){
        Route::get('/', 'AdvertiserController@index')->name('index');
        Route::post('/rent/{slug}', 'AdvertiserController@rent')->name('rent')->middleware(['auth']);
        Route::post('/buy/preview/{slug}', 'AdvertiserController@advertiser_buy_preview')->name('buy.preview')->middleware(['checkFormSubmission','auth']);
        
     });
     
 });