Add all files

This commit is contained in:
root
2025-11-30 11:57:22 +01:00
parent 2ee51cac4f
commit 044271db3d
1476 changed files with 142544 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
<?php
namespace App\Jobs\Server;
use App\Helpers\ExtensionHelper;
use App\Models\Service;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Queue\SerializesModels;
class UpgradeJob implements ShouldQueue
{
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
/**
* Create a new job instance.
*/
public function __construct(public Service $service, public $sendNotification = true) {}
/**
* Execute the job.
*/
public function handle(): void
{
// $data is the data that will be used to send the email, data is coming from the extension itself
try {
$data = ExtensionHelper::upgradeServer($this->service);
} catch (\Exception $e) {
if ($e->getMessage() == 'No server assigned to this product') {
return;
}
}
}
}