ldc-legaulois/app/Console/Commands/FetchDigitalRecruiterOffersCommand.php

36 lines
711 B
PHP

<?php
namespace App\Console\Commands;
use App\Jobs\FetchDigitalRecruiterOffers;
use Illuminate\Console\Command;
class FetchDigitalRecruiterOffersCommand extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'uwil:digital-recruiter';
/**
* The console command description.
*
* @var string
*/
protected $description = 'Fetch digital recruiter offers';
/**
* Execute the console command.
*
* @return integer
*/
public function handle()
{
(new FetchDigitalRecruiterOffers())->handle();
$this->info('Offers fetch 👌');
return 0;
}
}