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 | |
| 14 | public string $addPersonaUrl; |
| 15 | |
| 16 | /** |
| 17 | * @var User |
| 18 | */ |
| 19 | public $user; |
| 20 | |
| 21 | public $humanizedEndDate; |
| 22 | |
| 23 | /** |
| 24 | * Create a new message instance. |
| 25 | * |
| 26 | * @return void |
| 27 | */ |
| 28 | public function __construct($user, $endDate) |
| 29 | { |
| 30 | $this->user = $user; |
| 31 | $this->addPersonaUrl = config('romeo.frontend-base-url').'/settings/new'; |
| 32 | $this->humanizedEndDate = $endDate->format('F j, Y'); |
| 33 | } |
| 34 | |
| 35 | /** |
| 36 | * Build the message. |
| 37 | * |
| 38 | * @return $this |
| 39 | */ |
| 40 | public function build() |
| 41 | { |
| 42 | return $this->subject('FlyMSG - 14-day Trial starts today!') |
| 43 | ->view('mail.user.trial_welcome_email'); |
| 44 | } |
| 45 | } |