for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Gurgentil\EloquentFilters\Console\Commands;
use Illuminate\Console\GeneratorCommand;
class MakeFilterCommand extends GeneratorCommand
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $name = 'make:filter';
* The console command description.
protected $description = 'Create a new filter class';
* The type of class being generated.
protected $type = 'Filter';
* Get the stub file for the generator.
* @return string
protected function getStub(): string
return __DIR__ . '/../stubs/filter.stub';
}
* Get the default namespace for the class.
* @param string $rootNamespace
protected function getDefaultNamespace($rootNamespace): string
return $rootNamespace . '\Filters';