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