feat: add manual deposit system, implement Bank model, remove Docker configs, and initialize comprehensive Laravel best practice documentation for AI agents.
This commit is contained in:
@@ -30,13 +30,21 @@ class CreateVirtualMachine extends Mailable
|
||||
|
||||
public function envelope()
|
||||
{
|
||||
if (!$this->template) {
|
||||
throw new \RuntimeException('Email template ID=2 (CreateVirtualMachine) not found in database.');
|
||||
}
|
||||
|
||||
return new Envelope(
|
||||
subject: str_replace("{\$os_name}", $this->data['os_name'], $this->template->subject),
|
||||
subject: str_replace("{\$os_name}", $this->data['os_name'] ?? '', $this->template->subject),
|
||||
);
|
||||
}
|
||||
|
||||
public function content()
|
||||
{
|
||||
if (!$this->template) {
|
||||
throw new \RuntimeException('Email template ID=2 (CreateVirtualMachine) not found in database.');
|
||||
}
|
||||
|
||||
return new Content(
|
||||
view: 'emails.template',
|
||||
with: [
|
||||
@@ -79,7 +87,7 @@ class CreateVirtualMachine extends Mailable
|
||||
if ($this->invoicePdf !== null && $this->invoicePdfFileName !== null) {
|
||||
return [
|
||||
Attachment::fromData(fn () => $this->invoicePdf, $this->invoicePdfFileName)
|
||||
->mime('application/pdf'),
|
||||
->withMime('application/pdf'),
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user