Flugg\Responder\Console\MakeTransformer::getModelNamespace PHP Method

getModelNamespace() protected method

Get the full class path for the model.
protected getModelNamespace ( string $name ) : string
$name string
return string
    protected function getModelNamespace(string $name) : string
    {
        if ($this->option('model')) {
            return $this->option('model');
        }
        return 'App\\' . str_replace('Transformer', '', $name);
    }