38 lines
799 B
PHP
38 lines
799 B
PHP
<?php
|
|
|
|
namespace App\Console\Commands;
|
|
|
|
use App\Jobs\ExportTicketsState as JobsExportTicketsState;
|
|
use Illuminate\Console\Command;
|
|
|
|
class ExportTicketsState extends Command
|
|
{
|
|
/**
|
|
* The name and signature of the console command.
|
|
*
|
|
* @var string
|
|
*/
|
|
protected $signature = 'tickets:export-state';
|
|
|
|
/**
|
|
* The console command description.
|
|
*
|
|
* @var string
|
|
*/
|
|
protected $description = 'Export the state of tickets to a CSV file';
|
|
|
|
/**
|
|
* Execute the console command.
|
|
*
|
|
* @return integer
|
|
*/
|
|
public function handle()
|
|
{
|
|
$this->info('Running the Job, this could take some time.');
|
|
$job = new JobsExportTicketsState();
|
|
$job->handle();
|
|
$this->info('Job completed');
|
|
|
|
return 0;
|
|
}
|
|
}
|