27 lines
489 B
PHP
27 lines
489 B
PHP
<?php
|
|
|
|
namespace App\Mail;
|
|
|
|
use Illuminate\Bus\Queueable;
|
|
use Illuminate\Queue\SerializesModels;
|
|
|
|
class ServiceRenewedMail extends TemplateMailable
|
|
{
|
|
use Queueable, SerializesModels;
|
|
|
|
public function __construct(
|
|
private readonly string $scenarioKey,
|
|
private readonly array $data,
|
|
) {}
|
|
|
|
protected function scenario(): string
|
|
{
|
|
return $this->scenarioKey;
|
|
}
|
|
|
|
protected function variables(): array
|
|
{
|
|
return $this->data;
|
|
}
|
|
}
|