for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Victormln\LaravelTactician\Commands;
use Illuminate\Console\GeneratorCommand;
/**
* Create a new Tactician Command
* @package Victormln\LaravelTactician\Commands
*/
class MakeTacticianCommandCommand extends GeneratorCommand
{
* The console command name.
*
* @var string
protected $name = 'make:tactician:command';
* The console command description.
protected $description = 'Create a new Tactician Command';
* Get the stub file for the generator.
* @return string
protected function getStub()
return __DIR__.'/../../stubs/command.stub';
}
* Get the default namespace for the class.
* @param string $rootNamespace
protected function getDefaultNamespace($rootNamespace)
return "$rootNamespace\\CommandBus\\Commands";
* Get the destination class path.
* @param string $name
protected function getPath($name)
return parent::getPath($name.'Command');