src/Console/MakeTransformer.php
protected function buildClass($name)
    {
        $replace = [];

        if (! $this->option('model') && ! $this->option('plain')) {
            $this->input->setOption('model', $this->resolveModelFromClassName());
        }

        if ($this->option('model')) {
            $replace = $this->buildModelReplacements($replace);
        }

        return str_replace(array_keys($replace), array_values($replace), parent::buildClass($name));
    }
protected function buildClass($name)
    {
        $replace = [];

        if (! $this->option('model') && ! $this->option('plain')) {
            $this->input->setOption('model', $this->resolveModelFromClassName());
        }

        if ($this->option('model')) {
            $replace = $this->buildModelReplacements($replace);
        }

        return str_replace(array_keys($replace), array_values($replace), parent::buildClass($name));
    }
Build the class with the given name.

@param  string $name
@return string