31 lines
566 B
PHP
31 lines
566 B
PHP
<?php
|
|
|
|
namespace App\Jobs;
|
|
|
|
use App\Models\PricelistFile;
|
|
use Illuminate\Contracts\Queue\ShouldQueue;
|
|
use Illuminate\Foundation\Queue\Queueable;
|
|
|
|
class PricelistValidationJob implements ShouldQueue
|
|
{
|
|
use Queueable;
|
|
|
|
/**
|
|
* Create a new job instance.
|
|
*/
|
|
public function __construct(
|
|
public PricelistFile $pricelistFile
|
|
)
|
|
{
|
|
//
|
|
}
|
|
|
|
/**
|
|
* Execute the job.
|
|
*/
|
|
public function handle(\App\Services\PricelistFileProcessService $service): void
|
|
{
|
|
$service->validate($this->pricelistFile);
|
|
}
|
|
}
|