App\Console\Commands\PluginMake::buildPluginCode PHP Method

buildPluginCode() protected method

Build the class with the given name.
protected buildPluginCode ( $pluginName, $namespace, $title ) : string
return string
    protected function buildPluginCode($pluginName, $namespace, $title)
    {
        $stub = $this->files->get($this->getStub('plugin.stub'));
        $this->replaceNamespace($stub, $namespace)->replaceClass($stub, 'Plugin')->replacePluginName($stub, $pluginName)->replacePluginTitle($stub, $title);
        return $stub;
    }