original_string: public function registerAll()
      {
          /** @var LanguageService $service */
          $service   = resolve(LanguageService::class);
          $languages = $service->getAllEnabled();
          foreach ($this->routes['ml'] as $value) {
              foreach ($languages as $language) {
                  $prefix = null;
                  if (!$language->is_default) {
                      $prefix = $language->code;
                  }
                  Route::group(
                      array_merge(['prefix' => $prefix], $value['groupArgs']),
                      function ($router) use ($value, $language) {
                          $value['closure']($router, $language->code);
                      }
                  );
              }
          }
          foreach ($this->routes['regular'] as $value) {
              Route::group(
                  $value['groupArgs'],
                  function ($router) use ($value) {
                      $value['closure']($router);
                  }
              );
          }
          if (!empty($this->routes['catchAll'])) {
              Route::group(
                  $this->routes['catchAll']['groupArgs'],
                  function ($router) {
                      $this->routes['catchAll']['closure']($router);
                  }
              );
          }
  
          $router = resolve('router');
          $router->getRoutes()->refreshActionLookups();
          $router->getRoutes()->refreshNameLookups();
      }
code: public function registerAll()
      {
          /** @var LanguageService $service */
          $service   = resolve(LanguageService::class);
          $languages = $service->getAllEnabled();
          foreach ($this->routes['ml'] as $value) {
              foreach ($languages as $language) {
                  $prefix = null;
                  if (!$language->is_default) {
                      $prefix = $language->code;
                  }
                  Route::group(
                      array_merge(['prefix' => $prefix], $value['groupArgs']),
                      function ($router) use ($value, $language) {
                          $value['closure']($router, $language->code);
                      }
                  );
              }
          }
          foreach ($this->routes['regular'] as $value) {
              Route::group(
                  $value['groupArgs'],
                  function ($router) use ($value) {
                      $value['closure']($router);
                  }
              );
          }
          if (!empty($this->routes['catchAll'])) {
              Route::group(
                  $this->routes['catchAll']['groupArgs'],
                  function ($router) {
                      $this->routes['catchAll']['closure']($router);
                  }
              );
          }
  
          $router = resolve('router');
          $router->getRoutes()->refreshActionLookups();
          $router->getRoutes()->refreshNameLookups();
      }
code_tokens: public function registerAll ( ) { /** @var LanguageService $service */ $ service = resolve ( LanguageService :: class ) ; $ languages = $ service -> getAllEnabled ( ) ; foreach ( $ this -> routes [ 'ml' ] as $ value ) { foreach ( $ languages as $ language ) { $ prefix = null ; if ( ! $ language -> is_default ) { $ prefix = $ language -> code ; } Route :: group ( array_merge ( [ 'prefix' => $ prefix ] , $ value [ 'groupArgs' ] ) , function ( $ router ) use ( $ value , $ language ) { $ value [ 'closure' ] ( $ router , $ language -> code ) ; } ) ; } } foreach ( $ this -> routes [ 'regular' ] as $ value ) { Route :: group ( $ value [ 'groupArgs' ] , function ( $ router ) use ( $ value ) { $ value [ 'closure' ] ( $ router ) ; } ) ; } if ( ! empty ( $ this -> routes [ 'catchAll' ] ) ) { Route :: group ( $ this -> routes [ 'catchAll' ] [ 'groupArgs' ] , function ( $ router ) { $ this -> routes [ 'catchAll' ] [ 'closure' ] ( $ router ) ; } ) ; } $ router = resolve ( 'router' ) ; $ router -> getRoutes ( ) -> refreshActionLookups ( ) ; $ router -> getRoutes ( ) -> refreshNameLookups ( ) ; }
docstring: It registers all routes
  
  @return void
docstring_tokens: It registers all routes