ldc-boutique-cnc/app/Console/Commands/ImportSalaries.php

38 lines
803 B
PHP
Raw Permalink Normal View History

2021-07-20 16:34:27 +02:00
<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
use App\Jobs\CsvSalariesReader as JobCsvSalarieReader;
class ImportSalaries extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'import:salaries';
/**
* The console command description.
*
* @var string
*/
protected $description = 'Import Salaries, pour provision des clients';
/**
* Execute the console command.
*
2022-09-03 16:56:16 +02:00
* @return void
2021-07-20 16:34:27 +02:00
*/
public function handle()
{
$this->info('Running the Job, this could take some time.');
2022-08-25 12:26:43 +02:00
$job = new JobCsvSalarieReader();
2021-07-20 16:34:27 +02:00
$job->console = $this;
$job->handle();
$this->info('Job completed');
}
}