private function publishConfig($register)
    {
        $src = $this->path . '/config.php';
        if (!file_exists($src)) {
            return;
        }

        $dest = config_path($this->plugin . '.php');
        if (file_exists($dest)) {
            return;
        }

        if ($register) {
            copy($src, $dest);
        }
    }