Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 8 |
|
0.00% |
0 / 3 |
CRAP | |
0.00% |
0 / 1 |
| Welcome | |
0.00% |
0 / 8 |
|
0.00% |
0 / 3 |
12 | |
0.00% |
0 / 1 |
| __construct | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| via | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| toMail | |
0.00% |
0 / 6 |
|
0.00% |
0 / 1 |
2 | |||
| 1 | <?php |
| 2 | |
| 3 | namespace App\Notifications\Business; |
| 4 | |
| 5 | use Illuminate\Notifications\Messages\MailMessage; |
| 6 | use Illuminate\Notifications\Notification; |
| 7 | use Illuminate\Support\Facades\Config; |
| 8 | use Illuminate\Support\Facades\Lang; |
| 9 | |
| 10 | class Welcome extends Notification |
| 11 | { |
| 12 | public string $frontendBaseUrl; |
| 13 | |
| 14 | public function __construct() |
| 15 | { |
| 16 | $this->frontendBaseUrl = config('romeo.frontend-base-url'); |
| 17 | } |
| 18 | |
| 19 | public function via($notifiable): array |
| 20 | { |
| 21 | return ['mail']; |
| 22 | } |
| 23 | |
| 24 | public function toMail($notifiable): MailMessage |
| 25 | { |
| 26 | return (new MailMessage) |
| 27 | ->bcc(config('hubspotconfig.bcc_email')) |
| 28 | ->subject(Lang::get('You’re in! You’re so Fly…')) |
| 29 | ->view('mail.user.welcome', [ |
| 30 | 'name' => $notifiable->first_name, |
| 31 | ]); |
| 32 | } |
| 33 | } |