123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- <?php
- namespace App\Mail;
- use App\Models\Container;
- use App\Models\Enums\ObjectAction;
- use App\Models\Task;
- 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 ContainerAction extends Mailable
- {
- use Queueable, SerializesModels;
- /**
- * Create a new message instance.
- */
- public function __construct(public Container $container, protected ObjectAction $objectAction, public array $actions = [])
- {
- }
- /**
- * Get the message envelope.
- */
- public function envelope(): Envelope
- {
- return new Envelope(
- subject: $this->container->email_subject ?: $this->container->name,
- );
- }
- /**
- * Get the message content definition.
- */
- public function content(): Content
- {
- return new Content(
- //view: 'view.name',
- markdown: 'emails.actions.container',
- );
- }
- /**
- * Get the attachments for the message.
- *
- * @return array<int, \Illuminate\Mail\Mailables\Attachment>
- */
- public function attachments(): array
- {
- return [];
- }
- }
|