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
AdminCenterAddNewUser
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\Contracts\Queue\ShouldQueue;
7use Illuminate\Mail\Mailable;
8use Illuminate\Mail\Mailables\Content;
9use Illuminate\Mail\Mailables\Envelope;
10use Illuminate\Queue\SerializesModels;
11
12class AdminCenterAddNewUser extends Mailable
13{
14    use Queueable, SerializesModels;
15    public string $frontendBaseUrl;
16
17    /**
18     * Create a new message instance.
19     */
20    public function __construct(
21        public string $email,
22        public string $password,
23        public string $inviter,
24        public string $password_expiry,
25        public string $emailSubject = "Welcome to FlyMSG! ðŸ§¡"
26    ){
27        $this->frontendBaseUrl = config('romeo.frontend-base-url');
28    }
29
30    /**
31     * Get the message envelope.
32     */
33    public function envelope(): Envelope
34    {
35        return new Envelope(
36            subject: $this->emailSubject,
37        );
38    }
39
40    /**
41     * Get the message content definition.
42     */
43    public function content(): Content
44    {
45        return new Content(
46            view: 'mail.admin.add_new_user',
47        );
48    }
49
50    /**
51     * Get the attachments for the message.
52     *
53     * @return array<int, \Illuminate\Mail\Mailables\Attachment>
54     */
55    public function attachments(): array
56    {
57        return [];
58    }
59}