ldc-boutique-cnc/app/Console/Commands/ImportSalaries.php
2022-09-03 16:56:16 +02:00

37 lines
803 B
PHP

<?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.
*
* @return void
*/
public function handle()
{
$this->info('Running the Job, this could take some time.');
$job = new JobCsvSalarieReader();
$job->console = $this;
$job->handle();
$this->info('Job completed');
}
}