public static function configs()
    {
        $files = File::allFiles(base_path().'/plugins');
        $result = [];
        foreach ($files as $file){
            if($file->getBasename() == "config.json") {
                $result[] = json_decode(File::get($file->getPathname()));
            }
        }
        return $result;
    }
public static function configs()
    {
        $files = File::allFiles(base_path().'/plugins');
        $result = [];
        foreach ($files as $file){
            if($file->getBasename() == "config.json") {
                $result[] = json_decode(File::get($file->getPathname()));
            }
        }
        return $result;
    }
public static function configs ( ) { $ files = File :: allFiles ( base_path ( ) . '/plugins' ) ; $ result = [ ] ; foreach ( $ files as $ file ) { if ( $ file -> getBasename ( ) == "config.json" ) { $ result [ ] = json_decode ( File :: get ( $ file -> getPathname ( ) ) ) ; } } return $ result ; }
Gets the config.php file of each plugins and returns their values as multidimensional array.

@return array of file config
Gets the config . php file of each plugins and returns their values as multidimensional array .