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 MiddlewareMakeCommand extends AbstractGeneratorCommand
{
/**
* The console command name.
*
* @var string
*/
protected $name = 'larapi:make:middleware';
* The console command description.
protected $description = 'Create a new middleware class for the specified module.';
* The name of the generated resource.
protected $generatorName = 'middleware';
* The stub name.
protected $stub = 'middleware.stub';
* The file path.
protected $filePath = '/Http/Middleware';
protected function stubOptions(): array
return [
'CLASS' => $this->getClassName(),
'NAMESPACE' => $this->getClassNamespace(),
];
}
* Get the console command options.
* @return array
protected function getOptions()
return [];