ProviderApprovedMail.php 750 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. namespace App\Mail;
  3. use Illuminate\Bus\Queueable;
  4. use Illuminate\Mail\Mailable;
  5. use Illuminate\Mail\Mailables\Content;
  6. use Illuminate\Mail\Mailables\Envelope;
  7. use Illuminate\Queue\SerializesModels;
  8. class ProviderApprovedMail extends Mailable
  9. {
  10. use Queueable, SerializesModels;
  11. public function __construct(
  12. public readonly string $recipientName = '',
  13. ) {}
  14. public function envelope(): Envelope
  15. {
  16. return new Envelope(
  17. subject: __('mail.provider_approved.subject'),
  18. );
  19. }
  20. public function content(): Content
  21. {
  22. return new Content(
  23. view: 'emails.provider_approved',
  24. );
  25. }
  26. public function attachments(): array
  27. {
  28. return [];
  29. }
  30. }