original_string: protected function mapWebRoutes()
      {
          if (request()->segment(1) == 'api' || request()->segment(2) == 'api') {
              return;
          }
          
          Route::group([
              'middleware' => 'web',
              'namespace'  => $this->namespace,
              'prefix'     => trans_setlocale(),
          ], function ($router) {
              require (__DIR__ . '/../../routes/web.php');
          });
      }
code: protected function mapWebRoutes()
      {
          if (request()->segment(1) == 'api' || request()->segment(2) == 'api') {
              return;
          }
          
          Route::group([
              'middleware' => 'web',
              'namespace'  => $this->namespace,
              'prefix'     => trans_setlocale(),
          ], function ($router) {
              require (__DIR__ . '/../../routes/web.php');
          });
      }
code_tokens: protected function mapWebRoutes ( ) { if ( request ( ) -> segment ( 1 ) == 'api' || request ( ) -> segment ( 2 ) == 'api' ) { return ; } Route :: group ( [ 'middleware' => 'web' , 'namespace' => $ this -> namespace , 'prefix' => trans_setlocale ( ) , ] , function ( $ router ) { require ( __DIR__ . '/../../routes/web.php' ) ; } ) ; }
docstring: Define the "web" routes for the package.
  
  These routes all receive session state, CSRF protection, etc.
  
  @return void
docstring_tokens: Define the web routes for the package .