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