Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 8 |
|
0.00% |
0 / 4 |
CRAP | |
0.00% |
0 / 1 |
| AdminCenterAddNewUserByEmail | |
0.00% |
0 / 8 |
|
0.00% |
0 / 4 |
20 | |
0.00% |
0 / 1 |
| __construct | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| envelope | |
0.00% |
0 / 3 |
|
0.00% |
0 / 1 |
2 | |||
| content | |
0.00% |
0 / 3 |
|
0.00% |
0 / 1 |
2 | |||
| attachments | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| 1 | <?php |
| 2 | |
| 3 | namespace App\Mail; |
| 4 | |
| 5 | use Illuminate\Bus\Queueable; |
| 6 | use Illuminate\Contracts\Queue\ShouldQueue; |
| 7 | use Illuminate\Mail\Mailable; |
| 8 | use Illuminate\Mail\Mailables\Content; |
| 9 | use Illuminate\Mail\Mailables\Envelope; |
| 10 | use Illuminate\Queue\SerializesModels; |
| 11 | |
| 12 | class AdminCenterAddNewUserByEmail extends Mailable implements ShouldQueue |
| 13 | { |
| 14 | use Queueable, SerializesModels; |
| 15 | public string $frontendBaseUrl; |
| 16 | |
| 17 | /** |
| 18 | * Create a new message instance. |
| 19 | */ |
| 20 | public function __construct(public string $email, public string $emailSubject = "'Welcome to FlyMSG! 🧡'") |
| 21 | { |
| 22 | $this->frontendBaseUrl = config('romeo.frontend-base-url'); |
| 23 | } |
| 24 | |
| 25 | /** |
| 26 | * Get the message envelope. |
| 27 | */ |
| 28 | public function envelope(): Envelope |
| 29 | { |
| 30 | return new Envelope( |
| 31 | subject: $this->emailSubject, |
| 32 | ); |
| 33 | } |
| 34 | |
| 35 | /** |
| 36 | * Get the message content definition. |
| 37 | */ |
| 38 | public function content(): Content |
| 39 | { |
| 40 | return new Content( |
| 41 | view: 'mail.admin.add_new_user_by_email', |
| 42 | ); |
| 43 | } |
| 44 | |
| 45 | /** |
| 46 | * Get the attachments for the message. |
| 47 | * |
| 48 | * @return array<int, \Illuminate\Mail\Mailables\Attachment> |
| 49 | */ |
| 50 | public function attachments(): array |
| 51 | { |
| 52 | return []; |
| 53 | } |
| 54 | } |