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