create job for nikarayan

This commit is contained in:
2025-09-08 09:54:36 +03:30
parent 755ab2f67b
commit 76b0fbf565
2 changed files with 37 additions and 1 deletions

View File

@@ -0,0 +1,34 @@
<?php
namespace App\Jobs;
use App\Models\RoadObserved;
use App\Services\NikarayanService;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Http\Request;
use Illuminate\Queue\SerializesModels;
use SoapFault;
class UpdateRoadObservedInfoByNikarayanJob implements ShouldQueue
{
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
public $queue = 'nikarayan';
/**
* Create a new job instance.
*/
public function __construct(public Request $request, public RoadObserved $roadObserved, public $files) {}
/**
* Execute the job.
* @throws SoapFault
*/
public function handle(NikarayanService $nikarayanService): void
{
$nikarayanService->updateRoadObservedInfoByNikarayan($this->request, $this->roadObserved, $this->files);
}
}