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