for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace FondBot\Console;
use Illuminate\Console\GeneratorCommand;
class MakeIntentCommand extends GeneratorCommand
{
protected $name = 'fondbot:make:intent';
protected $description = 'Create a new intent class';
protected $type = 'Intent';
/** {@inheritdoc} */
protected function getStub(): string
return __DIR__.'/../../resources/stubs/Intent.stub';
}
protected function qualifyClass($name): string
return $name;
protected function getPath($name): string
return $this->laravel['path'].'/Intents/'.$name.'.php';
protected function getNamespace($name): string
return 'Intents';