wip del err

This commit is contained in:
salam committed 2026-10-04 15:22:39 +02:00
1 parent 812736ca9a
commit 9bcd4432c6
1210 files changed
-220941

No files matched your search

-60
View File
@@ -1,60 +0,0 @@
<?php
namespace App\Mail;
use Illuminate\Bus\Queueable;
use Illuminate\Mail\Mailable;
use Illuminate\Mail\Mailables\Attachment;
use Illuminate\Mail\Mailables\Content;
use Illuminate\Mail\Mailables\Envelope;
use Illuminate\Queue\SerializesModels;
class SofaScoreDataMail extends Mailable
{
use Queueable, SerializesModels;
/**
* Create a new message instance.
*/
public function __construct(public string $header, public array $sendfiles) {}
/**
* Get the message envelope.
*/
public function envelope(): Envelope
{
return new Envelope(
subject: $this->header,
);
}
/**
* Get the message content definition.
*/
public function content(): Content
{
return new Content(
markdown: 'mail.user.sofascore_data',
with: [
'message' => $this->header,
],
);
}
/**
* Get the attachments for the message.
*
* @return array<int, Attachment>
* ->withMime('application/x-zip-compressed');
*/
public function attachments(): array
{
$attachments = [];
foreach ($this->sendfiles as $sendfile) {
$attachments[] = Attachment::fromPath($sendfile)
->withMime('application/vnd.openxmlformats-officedocument.spreadsheetml.template');
}
return $attachments;
}
}