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 / 3
CRAP
0.00% covered (danger)
0.00%
0 / 1
DeleteAccount
0.00% covered (danger)
0.00%
0 / 8
0.00% covered (danger)
0.00%
0 / 3
12
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
 via
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 toMail
0.00% covered (danger)
0.00%
0 / 6
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2
3namespace App\Notifications\User;
4
5use Illuminate\Notifications\Messages\MailMessage;
6use Illuminate\Notifications\Notification;
7use Illuminate\Support\Facades\Config;
8use Illuminate\Support\Facades\Lang;
9
10class DeleteAccount 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('Getting ready to clip your wings?'))
29            ->view('mail.user.delete', [
30                'name' => $notifiable->first_name,
31            ]);
32    }
33}