lasthourcloud/app/Jobs/CheckResaleLicenseJob.php

31 lines
745 B
PHP
Raw Normal View History

2023-07-14 09:27:08 +00:00
<?php
namespace App\Jobs;
use App\Actions\License\CheckResaleLicense;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Queue\SerializesModels;
class CheckResaleLicenseJob implements ShouldQueue
{
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
public function __construct()
{
}
public function handle(): void
{
try {
resolve(CheckResaleLicense::class)();
} catch (\Throwable $th) {
2023-08-24 14:14:09 +00:00
send_internal_notification('CheckResaleLicenseJob failed with: ' . $th->getMessage());
2023-07-14 09:27:08 +00:00
ray($th);
2023-08-24 19:09:58 +00:00
throw $th;
2023-07-14 09:27:08 +00:00
}
}
}