Files
fuel-price/app/Jobs/PollFuelPricesJob.php
2026-04-04 14:04:45 +01:00

18 lines
330 B
PHP

<?php
namespace App\Jobs;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Queue\Queueable;
use Illuminate\Support\Facades\Artisan;
class PollFuelPricesJob implements ShouldQueue
{
use Queueable;
public function handle(): void
{
Artisan::call('fuel:poll', ['--full' => true]);
}
}