Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 5 |
|
0.00% |
0 / 2 |
CRAP | |
0.00% |
0 / 1 |
| TrialWelcomeMail | |
0.00% |
0 / 5 |
|
0.00% |
0 / 2 |
6 | |
0.00% |
0 / 1 |
| __construct | |
0.00% |
0 / 3 |
|
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\Mail\Mailable; |
| 8 | use Illuminate\Queue\SerializesModels; |
| 9 | |
| 10 | class TrialWelcomeMail extends Mailable |
| 11 | { |
| 12 | use Queueable, SerializesModels; |
| 13 | public string $addPersonaUrl; |
| 14 | |
| 15 | /** |
| 16 | * @var User |
| 17 | */ |
| 18 | public $user; |
| 19 | public $humanizedEndDate; |
| 20 | |
| 21 | /** |
| 22 | * Create a new message instance. |
| 23 | * |
| 24 | * @return void |
| 25 | */ |
| 26 | public function __construct($user, $endDate) |
| 27 | { |
| 28 | $this->user = $user; |
| 29 | $this->addPersonaUrl = config('romeo.frontend-base-url') . '/settings/new'; |
| 30 | $this->humanizedEndDate = $endDate->format('F j, Y'); |
| 31 | } |
| 32 | |
| 33 | /** |
| 34 | * Build the message. |
| 35 | * |
| 36 | * @return $this |
| 37 | */ |
| 38 | public function build() |
| 39 | { |
| 40 | return $this->subject("FlyMSG - 14-day Trial starts today!") |
| 41 | ->view('mail.user.trial_welcome_email'); |
| 42 | } |
| 43 | } |