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 PolicyMakeCommand extends AbstractGeneratorCommand
{
/**
* The console command name.
*
* @var string
*/
protected $name = 'larapi:make:policy';
* The name of the generated resource.
protected $generatorName = 'policy';
* The stub name.
protected $stub = 'policy.stub';
* The file path.
protected $filePath = '/Policies';
protected function stubOptions(): array
return [
'NAMESPACE' => $this->getClassNamespace(),
'CLASS' => $this->getClassName(),
];
}