Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 9 |
|
0.00% |
0 / 4 |
CRAP | |
0.00% |
0 / 1 |
GlobalAdminInvitationMail | |
0.00% |
0 / 9 |
|
0.00% |
0 / 4 |
20 | |
0.00% |
0 / 1 |
__construct | |
0.00% |
0 / 2 |
|
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 GlobalAdminInvitationMail extends Mailable |
13 | { |
14 | use Queueable, SerializesModels; |
15 | |
16 | public string $href; |
17 | public string $frontendBaseUrl; |
18 | |
19 | /** |
20 | * Create a new message instance. |
21 | */ |
22 | public function __construct( |
23 | public string $email, |
24 | public string $firstName, |
25 | public string $lastName, |
26 | public string $inviter, |
27 | public string $temporaryPassword, |
28 | public string $passwordExpiry) |
29 | { |
30 | $this->frontendBaseUrl = config('romeo.frontend-base-url'); |
31 | $this->href = $this->frontendBaseUrl."/session/signin?email={$email}"; |
32 | |
33 | } |
34 | |
35 | /** |
36 | * Get the message envelope. |
37 | */ |
38 | public function envelope(): Envelope |
39 | { |
40 | return new Envelope( |
41 | subject: "Welcome to FlyMSG's Global Admin Center, {$this->firstName} {$this->lastName}", |
42 | ); |
43 | } |
44 | |
45 | /** |
46 | * Get the message content definition. |
47 | */ |
48 | public function content(): Content |
49 | { |
50 | return new Content( |
51 | view: 'mail.admin.global_admin_invitation', |
52 | ); |
53 | } |
54 | |
55 | /** |
56 | * Get the attachments for the message. |
57 | * |
58 | * @return array<int, \Illuminate\Mail\Mailables\Attachment> |
59 | */ |
60 | public function attachments(): array |
61 | { |
62 | return []; |
63 | } |
64 | } |