Files
shipping-portal/app/Console/Commands/V2/AutoGenerateInvoiceV2Command.php
T
2023-12-28 01:58:49 +08:00

44 lines
817 B
PHP

<?php
namespace App\Console\Commands\V2;
use App\Classes\Jobs\Commands\V2\AutoGenerateInvoiceV2CommandJob;
use Illuminate\Console\Command;
class AutoGenerateInvoiceV2Command extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'invoice-generate-command';
/**
* The console command description.
*
* @var string
*/
protected $description = 'Auto generate invoice';
/**
* Create a new command instance.
*
* @return void
*/
public function __construct()
{
parent::__construct();
}
/**
* Execute the console command.
*
* @return int
*/
public function handle()
{
AutoGenerateInvoiceV2CommandJob::dispatch();
}
}