for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Spatie\Fractal\Console\Commands;
use Illuminate\Console\GeneratorCommand;
class TransformerMakeCommand extends GeneratorCommand
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $name = 'make:transformer';
* The console command description.
protected $description = 'Create a new Fractal transformer class';
* The type of class being generated.
protected $type = 'Transformer';
* Get the stub file for the generator.
* @return string
protected function getStub()
return __DIR__.'/../stubs/transformer.stub';
}
* Get the default namespace for the class.
* @param string $rootNamespace
protected function getDefaultNamespace($rootNamespace)
return $rootNamespace.'\Transformers';