2024-04-09 22:36:40 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Jobs;
|
|
|
|
|
|
|
|
use Illuminate\Bus\Queueable;
|
|
|
|
use Illuminate\Contracts\Queue\ShouldQueue;
|
|
|
|
use Illuminate\Foundation\Bus\Dispatchable;
|
|
|
|
use Illuminate\Queue\InteractsWithQueue;
|
|
|
|
use Illuminate\Queue\SerializesModels;
|
|
|
|
|
|
|
|
class ScrapeProperyData implements ShouldQueue
|
|
|
|
{
|
|
|
|
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
|
|
|
|
|
2024-04-13 00:54:08 +02:00
|
|
|
protected $property;
|
|
|
|
|
2024-04-09 22:36:40 +02:00
|
|
|
/**
|
|
|
|
* Create a new job instance.
|
|
|
|
*/
|
2024-04-13 00:54:08 +02:00
|
|
|
public function __construct($property)
|
2024-04-09 22:36:40 +02:00
|
|
|
{
|
2024-04-13 00:54:08 +02:00
|
|
|
$this->property = $property;
|
2024-04-09 22:36:40 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Execute the job.
|
|
|
|
*/
|
|
|
|
public function handle(): void
|
|
|
|
{
|
2024-04-13 00:54:08 +02:00
|
|
|
Edomizil::scrapePropertyData($this->property);
|
2024-04-09 22:36:40 +02:00
|
|
|
}
|
|
|
|
}
|