Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 7 |
|
0.00% |
0 / 2 |
CRAP | |
0.00% |
0 / 1 |
DeleteAccount | |
0.00% |
0 / 7 |
|
0.00% |
0 / 2 |
6 | |
0.00% |
0 / 1 |
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 DeleteAccount extends Notification |
11 | { |
12 | public function via($notifiable): array |
13 | { |
14 | return ['mail']; |
15 | } |
16 | |
17 | public function toMail($notifiable): MailMessage |
18 | { |
19 | return (new MailMessage) |
20 | ->bcc(config('hubspotconfig.bcc_email')) |
21 | ->subject(Lang::get('Getting ready to clip your wings?')) |
22 | ->view('mail.business.delete', [ |
23 | 'name' => $notifiable->first_name, |
24 | ]); |
25 | } |
26 | } |