first commit
This commit is contained in:
35
app/Jobs/PropertyReviewServiceJob.php
Normal file
35
app/Jobs/PropertyReviewServiceJob.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
namespace App\Jobs;
|
||||
|
||||
use Illuminate\Contracts\Queue\ShouldQueue;
|
||||
use Illuminate\Queue\InteractsWithQueue;
|
||||
use Illuminate\Support\Facades\Artisan;
|
||||
|
||||
class PropertyReviewServiceJob implements ShouldQueue
|
||||
{
|
||||
use InteractsWithQueue;
|
||||
|
||||
protected $propertyId;
|
||||
protected $channelId;
|
||||
|
||||
/**
|
||||
* Create a new job instance.
|
||||
*/
|
||||
public function __construct($propertyId, $channelId)
|
||||
{
|
||||
$this->propertyId = $propertyId;
|
||||
$this->channelId = $channelId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Execute the job.
|
||||
*/
|
||||
public function handle()
|
||||
{
|
||||
Artisan::call('cron:property-review-service', [
|
||||
'property_id' => $this->propertyId,
|
||||
'channel_id' => $this->channelId
|
||||
]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user