Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 4 |
|
0.00% |
0 / 2 |
CRAP | |
0.00% |
0 / 1 |
TrialExpiryMail | |
0.00% |
0 / 4 |
|
0.00% |
0 / 2 |
6 | |
0.00% |
0 / 1 |
__construct | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
build | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 |
1 | <?php |
2 | |
3 | namespace App\Mail; |
4 | |
5 | use App\Http\Models\Auth\User; |
6 | use Illuminate\Bus\Queueable; |
7 | use Illuminate\Contracts\Queue\ShouldQueue; |
8 | use Illuminate\Mail\Mailable; |
9 | use Illuminate\Queue\SerializesModels; |
10 | |
11 | class TrialExpiryMail extends Mailable |
12 | { |
13 | use Queueable, SerializesModels; |
14 | public string $frontendBaseUrl; |
15 | |
16 | /** |
17 | * @var User |
18 | */ |
19 | public $user; |
20 | |
21 | /** |
22 | * Create a new message instance. |
23 | * |
24 | * @return void |
25 | */ |
26 | public function __construct($user) |
27 | { |
28 | $this->user = $user; |
29 | $this->frontendBaseUrl = config('romeo.frontend-base-url'); |
30 | } |
31 | |
32 | /** |
33 | * Build the message. |
34 | * |
35 | * @return $this |
36 | */ |
37 | public function build() |
38 | { |
39 | return $this->subject("FlyMSG - Uh Oh! Trial Expired {$this->user->first_name}!") |
40 | ->view('mail.user.trial_expiry_email'); |
41 | } |
42 | } |