src/Services/PluginManager.php
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);
        }
    }
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);
        }
    }
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 ) ; } }
Copy the config, if not already done

@param bool $register
Copy the config if not already done