public static function configs()
    {
        $files = File::allFiles(base_path().'/themes');
        $result = [];
        foreach ($files as $file){
            if($file->getBasename() == "config.json") {
                $result[] = self::getConfig($file->getPath());
            }
        }
        return $result;
    }
public static function configs()
    {
        $files = File::allFiles(base_path().'/themes');
        $result = [];
        foreach ($files as $file){
            if($file->getBasename() == "config.json") {
                $result[] = self::getConfig($file->getPath());
            }
        }
        return $result;
    }
public static function configs ( ) { $ files = File :: allFiles ( base_path ( ) . '/themes' ) ; $ result = [ ] ; foreach ( $ files as $ file ) { if ( $ file -> getBasename ( ) == "config.json" ) { $ result [ ] = self :: getConfig ( $ file -> getPath ( ) ) ; } } return $ result ; }
Gets configs of all themes.

@return array
@throws \Exception
Gets configs of all themes .