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\ClassGeneratorCommand;
use Foundation\Generator\Events\EventGeneratedEvent;
use Foundation\Generator\Events\GuardGeneratedEvent;
class GuardMakeCommand extends ClassGeneratorCommand
{
/**
* The console command name.
*
* @var string
*/
protected $name = 'larapi:make:guard';
* The console command description.
protected $description = 'Create a new guard class for the specified module';
* The name of the generated resource.
protected $generatorName = 'guard';
* The stub name.
protected $stub = 'guard.stub';
* The file path.
protected $filePath = '/Guards';
* The event that will fire when the file is created.
protected $event = GuardGeneratedEvent::class;
protected function stubOptions(): array
return [
'NAMESPACE' => $this->getClassNamespace(),
'CLASS' => $this->getClassName(),
];
}