for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Foundation\Generator\Commands;
use Foundation\Generator\Abstracts\AbstractGeneratorCommand;
class RuleMakeCommand extends AbstractGeneratorCommand
{
/**
* The console command name.
*
* @var string
*/
protected $name = 'larapi:make:rule';
* The console command description.
protected $description = 'Create a new validation rule for the specified module.';
* The name of the generated resource.
protected $generatorName = 'rule';
* The stub name.
protected $stub = 'rule.stub';
* The file path.
protected $filePath = '/Rules';
protected function stubOptions(): array
return [
'NAMESPACE' => $this->getClassNamespace(),
'CLASS' => $this->getClassName(),
];
}