public function getRoutsFromTheme($themeName)
    {
        if(Theme::ifExists($themeName)) {
            $routeDir = base_path('themes/' . $themeName . '/routes');
            if (is_dir($routeDir)) {
                $routeFiles = File::files($routeDir);

                //                \Route::group([
                //                    'middleware' => 'frontend', // TODO add theme middleware
                //                    'namespace' => Theme::getNamespaceOf(Theme::getActiveTheme()),
                //                ], function () use ($routeFiles) {
                //                    foreach ($routeFiles as $file) {
                //                        require_once $file;
                //                    }
                //                });
            }
        }
        return $this;
    }
public function getRoutsFromTheme($themeName)
    {
        if(Theme::ifExists($themeName)) {
            $routeDir = base_path('themes/' . $themeName . '/routes');
            if (is_dir($routeDir)) {
                $routeFiles = File::files($routeDir);

                //                \Route::group([
                //                    'middleware' => 'frontend', // TODO add theme middleware
                //                    'namespace' => Theme::getNamespaceOf(Theme::getActiveTheme()),
                //                ], function () use ($routeFiles) {
                //                    foreach ($routeFiles as $file) {
                //                        require_once $file;
                //                    }
                //                });
            }
        }
        return $this;
    }
public function getRoutsFromTheme ( $ themeName ) { if ( Theme :: ifExists ( $ themeName ) ) { $ routeDir = base_path ( 'themes/' . $ themeName . '/routes' ) ; if ( is_dir ( $ routeDir ) ) { $ routeFiles = File :: files ( $ routeDir ) ; //                \Route::group([ //                    'middleware' => 'frontend', // TODO add theme middleware //                    'namespace' => Theme::getNamespaceOf(Theme::getActiveTheme()), //                ], function () use ($routeFiles) { //                    foreach ($routeFiles as $file) { //                        require_once $file; //                    } //                }); } } return $ this ; }
Get routes from a specific theme

@param string $themeName Directoy Name of theme

@return $this
Get routes from a specific theme