original_string: protected function mapOtherwise(Router $router, $routes, $applyAlwaysAuthenticate)
      {
          $middleware = [
              SubstituteBindings::class,
              Acceptable::class,
              Timezone::class,
          ];
  
          if ($applyAlwaysAuthenticate && !$this->isWhiteListedAuthRoute($routes)) {
              $middleware[] = 'auth.api:true';
          }
  
          $router->group(['middleware' => $middleware], function (Router $router) use ($routes) {
              $routes->map($router);
          });
      }
code: protected function mapOtherwise(Router $router, $routes, $applyAlwaysAuthenticate)
      {
          $middleware = [
              SubstituteBindings::class,
              Acceptable::class,
              Timezone::class,
          ];
  
          if ($applyAlwaysAuthenticate && !$this->isWhiteListedAuthRoute($routes)) {
              $middleware[] = 'auth.api:true';
          }
  
          $router->group(['middleware' => $middleware], function (Router $router) use ($routes) {
              $routes->map($router);
          });
      }
code_tokens: protected function mapOtherwise ( Router $ router , $ routes , $ applyAlwaysAuthenticate ) { $ middleware = [ SubstituteBindings :: class , Acceptable :: class , Timezone :: class , ] ; if ( $ applyAlwaysAuthenticate && ! $ this -> isWhiteListedAuthRoute ( $ routes ) ) { $ middleware [ ] = 'auth.api:true' ; } $ router -> group ( [ 'middleware' => $ middleware ] , function ( Router $ router ) use ( $ routes ) { $ routes -> map ( $ router ) ; } ) ; }
docstring: Wrap the routes in the basic middleware.
  
  @param \Illuminate\Routing\Router $router
  @param object                     $routes
  @param bool                       $applyAlwaysAuthenticate
  
  @return void
docstring_tokens: Wrap the routes in the basic middleware .