src/Core/Console/PluginInstallCommand.php
protected function setConfigurationFile(string $name, array $headers)
    {
        $this->info('Set plugin configuration...');

        $prefix = trim($headers['plugin_prefix'], '\/_-');
        $from = $this->path($name.'/config/prefix_plugin.php');
        $to = $this->path($name.'/config/'.$prefix.'_plugin.php');

        $this->files->move($from, $to);
        $this->replaceFileContent($to, $headers);
    }
protected function setConfigurationFile(string $name, array $headers)
    {
        $this->info('Set plugin configuration...');

        $prefix = trim($headers['plugin_prefix'], '\/_-');
        $from = $this->path($name.'/config/prefix_plugin.php');
        $to = $this->path($name.'/config/'.$prefix.'_plugin.php');

        $this->files->move($from, $to);
        $this->replaceFileContent($to, $headers);
    }
protected function setConfigurationFile ( string $ name , array $ headers ) { $ this -> info ( 'Set plugin configuration...' ) ; $ prefix = trim ( $ headers [ 'plugin_prefix' ] , '\/_-' ) ; $ from = $ this -> path ( $ name . '/config/prefix_plugin.php' ) ; $ to = $ this -> path ( $ name . '/config/' . $ prefix . '_plugin.php' ) ; $ this -> files -> move ( $ from , $ to ) ; $ this -> replaceFileContent ( $ to , $ headers ) ; }
Set the plugin configuration file.

@param string $name
@param array  $headers

@throws \Illuminate\Contracts\Filesystem\FileNotFoundException
Set the plugin configuration file .