feat: implement VM snapshot management, enhance client resource loading, and refactor deployment workflow for production
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user