public static function getConfig($themeDirectory)
    {
        $getConfigValues = [];

        // make absolute path work
        if(is_dir($themeDirectory)) {
            $path = $themeDirectory.'/config.json';
        }else{
            $path = base_path()."/themes/".$themeDirectory.'/config.json';
        }

        if(file_exists($path)) {
            $getConfigValues = json_decode(file_get_contents($path), true);
            if(!is_array($getConfigValues)) {
                throw new \Exception("It seems like your theme ".$path." is not well formatted!");
            }
        }

        return $getConfigValues;
    }
public static function getConfig($themeDirectory)
    {
        $getConfigValues = [];

        // make absolute path work
        if(is_dir($themeDirectory)) {
            $path = $themeDirectory.'/config.json';
        }else{
            $path = base_path()."/themes/".$themeDirectory.'/config.json';
        }

        if(file_exists($path)) {
            $getConfigValues = json_decode(file_get_contents($path), true);
            if(!is_array($getConfigValues)) {
                throw new \Exception("It seems like your theme ".$path." is not well formatted!");
            }
        }

        return $getConfigValues;
    }
public static function getConfig ( $ themeDirectory ) { $ getConfigValues = [ ] ; // make absolute path work if ( is_dir ( $ themeDirectory ) ) { $ path = $ themeDirectory . '/config.json' ; } else { $ path = base_path ( ) . "/themes/" . $ themeDirectory . '/config.json' ; } if ( file_exists ( $ path ) ) { $ getConfigValues = json_decode ( file_get_contents ( $ path ) , true ) ; if ( ! is_array ( $ getConfigValues ) ) { throw new \ Exception ( "It seems like your theme " . $ path . " is not well formatted!" ) ; } } return $ getConfigValues ; }
Get theme configuration.

@param  string $themeDirectory
@return array|mixed
@throws \Exception
Get theme configuration .