for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @link https://github.com/vuongxuongminh/laravel-async
*
* @copyright (c) Vuong Xuong Minh
* @license [MIT](https://opensource.org/licenses/MIT)
*/
namespace VXM\Async\Commands;
use Illuminate\Console\GeneratorCommand;
* @author Vuong Minh <[email protected]>
* @since 1.0.0
class JobMakeCommand extends GeneratorCommand
{
* The console command name.
* @var string
protected $name = 'make:async-job';
* The console command description.
protected $description = 'Create a new async job class';
* The type of class being generated.
protected $type = 'Async job';
* Get the stub file for the generator.
* @return string
protected function getStub()
return __DIR__.'/stubs/job.stub';
}
* Get the default namespace for the class.
* @param string $rootNamespace
protected function getDefaultNamespace($rootNamespace)
return $rootNamespace.'\AsyncJobs';