public function config($key, $default = null)
    {
        $parts = explode('.', $key);

        $filename = head($parts);

        $parts = array_slice($parts, 0);

        $path = $this->path . "/config/config.php";

        if (! file_exists($path)) {
            $path = $this->path . "/config/{$filename}.php";
        }

        $key = implode('.', $parts);

        $config = file_exists($path) ? require $path : [];

        return array_get($config, $key, $default);
    }