/
marklis
/
transport
Обзор
Документация
Войти
/
marklis
/
transport
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
app/Mail/MailToClient.php
57 строк
1 KB
Мамонов Алексей Анатольевич
Шаблоны текста сообщения
09 апр 2024, 14:26
09 апр 2024, 14:26
e9ef1a9
Код
Авторство
О чём код?
<?php namespace App\Mail; use Illuminate\Bus\Queueable; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Mail\Mailable; use Illuminate\Mail\Mailables\Content; use Illuminate\Mail\Mailables\Envelope; use Illuminate\Queue\SerializesModels; class MailToClient extends Mailable { use Queueable, SerializesModels; /** * Create a new message instance. */ public function __construct( public string $header = '', public string $body = '', public array $file = [] ) { // } /** * Get the message envelope. */ public function envelope(): Envelope { return new Envelope( subject: 'Заявка на транспорт', ); } /** * Get the message content definition. */ public function content(): Content { return new Content( view: 'mail.client', ); } /** * Get the attachments for the message. * * @return array<int, \Illuminate\Mail\Mailables\Attachment> */ public function attachments(): array { return $this->file; } }