for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace R\Hive\Commands;
class MakeValidatorCommand extends HiveGeneratorCommand
{
/**
* The console command name.
*
* @var string
*/
protected $name = 'hive:validator';
* The console command description.
protected $description = 'Create a new Hive validator class.';
* The type of class being generated.
protected $type = 'Validator';
* Execute the console command.
* @return void
public function fire()
parent::fire();
}
* Get the stub file for the generator.
* @return string
protected function getStub()
return __DIR__.'/stubs/validator.stub';
* Get the default namespace for the class.
* @param string $rootNamespace
protected function getDefaultNamespace($rootNamespace)
return $rootNamespace.'\Lib\Data';
* Get the console command options.
* @return array
protected function getOptions()
return [
//
];