for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Boduch\Grid\Console;
use Illuminate\Console\GeneratorCommand;
class GridMakeCommand extends GeneratorCommand
{
/**
* The console command name.
*
* @var string
*/
protected $name = 'make:grid';
* The console command description.
protected $description = 'Create a new Laravel Grid class';
* The type of class being generated.
protected $type = 'Grid';
* Determine if the class already exists.
* @param string $rawName
* @return bool
protected function alreadyExists($rawName)
return class_exists($rawName);
}
* Get the stub file for the generator.
* @return string
protected function getStub()
return __DIR__.'/stubs/grid.stub';
* Get the default namespace for the class.
* @param string $rootNamespace
protected function getDefaultNamespace($rootNamespace)
return $rootNamespace.'\Http\Grids';