src/Providers/ModuleProvider.php
private function registerModuleRoutes()
    {
        $this->app->singleton('typicms.routes', function (Application $app) {
            try {
                return $app->make('Pages')->with('files')->getForRoutes();
            } catch (Exception $e) {
                return [];
            }
        });
    }
private function registerModuleRoutes()
    {
        $this->app->singleton('typicms.routes', function (Application $app) {
            try {
                return $app->make('Pages')->with('files')->getForRoutes();
            } catch (Exception $e) {
                return [];
            }
        });
    }
private function registerModuleRoutes ( ) { $ this -> app -> singleton ( 'typicms.routes' , function ( Application $ app ) { try { return $ app -> make ( 'Pages' ) -> with ( 'files' ) -> getForRoutes ( ) ; } catch ( Exception $ e ) { return [ ] ; } } ) ; }
Get routes from pages.

@return array
Get routes from pages .