33 lines
599 B
PHP
33 lines
599 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace App\Console\Commands;
|
||
|
|
|
||
|
|
use App\Jobs\FetchMesBr;
|
||
|
|
use Illuminate\Console\Command;
|
||
|
|
|
||
|
|
class FetchMesBrCommand extends Command
|
||
|
|
{
|
||
|
|
/**
|
||
|
|
* The name and signature of the console command.
|
||
|
|
*
|
||
|
|
* @var string
|
||
|
|
*/
|
||
|
|
protected $signature = 'uwil:mesbr';
|
||
|
|
|
||
|
|
/**
|
||
|
|
* The console command description.
|
||
|
|
*
|
||
|
|
* @var string
|
||
|
|
*/
|
||
|
|
protected $description = 'Fetch mesbr discounts';
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Execute the console command.
|
||
|
|
*/
|
||
|
|
public function handle(): void
|
||
|
|
{
|
||
|
|
(new FetchMesBr())->handle();
|
||
|
|
$this->info('Discounts fetch 👌');
|
||
|
|
}
|
||
|
|
}
|