protected function loadCachedRoutes()
    {
        $localization = $this->getLaravelLocalization();

        $localization->setLocale();

        $locale = $localization->getCurrentLocale();

        $localeKeys = $localization->getSupportedLanguagesKeys();

        // First, try to load the routes specifically cached for this locale
        // if they do not exist, write a warning to the log and load the default
        // routes instead. Note that this is guaranteed to exist, because the
        // 'cached routes' check in the Application checks its existence.

        $path = $this->makeLocaleRoutesPath($locale, $localeKeys);

        if ( ! file_exists($path)) {

            Log::warning("Routes cached, but no cached routes found for locale '{$locale}'!");

            $path = $this->getDefaultCachedRoutePath();
        }

        $this->app->booted(function () use ($path) {
            require $path;
        });
    }
protected function loadCachedRoutes()
    {
        $localization = $this->getLaravelLocalization();

        $localization->setLocale();

        $locale = $localization->getCurrentLocale();

        $localeKeys = $localization->getSupportedLanguagesKeys();

        // First, try to load the routes specifically cached for this locale
        // if they do not exist, write a warning to the log and load the default
        // routes instead. Note that this is guaranteed to exist, because the
        // 'cached routes' check in the Application checks its existence.

        $path = $this->makeLocaleRoutesPath($locale, $localeKeys);

        if ( ! file_exists($path)) {

            Log::warning("Routes cached, but no cached routes found for locale '{$locale}'!");

            $path = $this->getDefaultCachedRoutePath();
        }

        $this->app->booted(function () use ($path) {
            require $path;
        });
    }
protected function loadCachedRoutes ( ) { $ localization = $ this -> getLaravelLocalization ( ) ; $ localization -> setLocale ( ) ; $ locale = $ localization -> getCurrentLocale ( ) ; $ localeKeys = $ localization -> getSupportedLanguagesKeys ( ) ; // First, try to load the routes specifically cached for this locale // if they do not exist, write a warning to the log and load the default // routes instead. Note that this is guaranteed to exist, because the // 'cached routes' check in the Application checks its existence. $ path = $ this -> makeLocaleRoutesPath ( $ locale , $ localeKeys ) ; if ( ! file_exists ( $ path ) ) { Log :: warning ( "Routes cached, but no cached routes found for locale '{$locale}'!" ) ; $ path = $ this -> getDefaultCachedRoutePath ( ) ; } $ this -> app -> booted ( function ( ) use ( $ path ) { require $ path ; } ) ; }
Load the cached routes for the application.

@return void
Load the cached routes for the application .