protected function mapRoutes()
    {
        if (!$this->app->routesAreCached()) {
            Route::group(
                ['middleware' => ['web']], function () {
                    $routes = new Routes();

                    // Backend Routes
                    $routes->mapBackendRoutes()
                        ->mapPluginsBackendRoutes();

                    // Frontend Routes
                    $routes->mapFrontendBaseRoutes()
                        ->mapFrontendRoutes()
                        ->mapThemeRoutes()
                        ->mapPluginsFrontendRoutes();

                    // Add Language {lang} prefix
                    $routes->addLanguagePrefix()
                        ->sortRoutes();
                }
            );
        }
    }
protected function mapRoutes()
    {
        if (!$this->app->routesAreCached()) {
            Route::group(
                ['middleware' => ['web']], function () {
                    $routes = new Routes();

                    // Backend Routes
                    $routes->mapBackendRoutes()
                        ->mapPluginsBackendRoutes();

                    // Frontend Routes
                    $routes->mapFrontendBaseRoutes()
                        ->mapFrontendRoutes()
                        ->mapThemeRoutes()
                        ->mapPluginsFrontendRoutes();

                    // Add Language {lang} prefix
                    $routes->addLanguagePrefix()
                        ->sortRoutes();
                }
            );
        }
    }
protected function mapRoutes ( ) { if ( ! $ this -> app -> routesAreCached ( ) ) { Route :: group ( [ 'middleware' => [ 'web' ] ] , function ( ) { $ routes = new Routes ( ) ; // Backend Routes $ routes -> mapBackendRoutes ( ) -> mapPluginsBackendRoutes ( ) ; // Frontend Routes $ routes -> mapFrontendBaseRoutes ( ) -> mapFrontendRoutes ( ) -> mapThemeRoutes ( ) -> mapPluginsFrontendRoutes ( ) ; // Add Language {lang} prefix $ routes -> addLanguagePrefix ( ) -> sortRoutes ( ) ; } ) ; } }
Define the "web" routes for the application..

@throws \Exception
Define the web routes for the application ..