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