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:
pbao9
2026-05-14 16:33:35 +07:00
parent ae3b681aaa
commit 41de3744a8
73 changed files with 5397 additions and 218 deletions
+10 -2
View File
@@ -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'),
];
}