feat: implement VM snapshot management, enhance client resource loading, and refactor deployment workflow for production

This commit is contained in:
pbao9
2026-05-11 11:09:55 +07:00
parent 8aef607e1f
commit 96778e7bed
51 changed files with 2536 additions and 1249 deletions
@@ -19,27 +19,23 @@ class SendInformationVirtualMachine implements ShouldQueue
public $data = [];
public $customer;
/**
* Create a new job instance.
*
* @return void
*/
public function __construct($data = [],$customer = [])
protected ?string $invoicePdf;
protected ?string $invoicePdfFileName;
public function __construct($data = [], $customer = [], ?string $invoicePdf = null, ?string $invoicePdfFileName = null)
{
$this->data = $data;
$this->customer = $customer;
$this->invoicePdf = $invoicePdf;
$this->invoicePdfFileName = $invoicePdfFileName;
}
/**
* Execute the job.
*
* @return void
*/
public function handle()
{
try {
$email = new CreateVirtualMachine(2,$this->data);
$email = new CreateVirtualMachine(2, $this->data, $this->invoicePdf, $this->invoicePdfFileName);
Mail::to($this->customer->email)->send($email);