Total Complexity | 4 |
Total Lines | 47 |
Duplicated Lines | 0 % |
Coverage | 41.67% |
Changes | 0 |
1 | <?php |
||
11 | class ResetAdminPassword extends Notification implements ShouldQueue |
||
12 | { |
||
13 | use Queueable, SerializesModels; |
||
14 | |||
15 | public $token; |
||
16 | |||
17 | public function __construct($token) |
||
18 | { |
||
19 | $this->token = $token; |
||
20 | } |
||
21 | |||
22 | /** |
||
23 | * Get the notification's delivery channels. |
||
24 | * |
||
25 | * @param mixed $notifiable |
||
26 | * @return array |
||
27 | */ |
||
28 | public function via($notifiable) |
||
29 | { |
||
30 | return ['mail']; |
||
31 | } |
||
32 | |||
33 | /** |
||
34 | * Get the mail representation of the notification. |
||
35 | * |
||
36 | * @param mixed $notifiable |
||
37 | * @return \Illuminate\Notifications\Messages\MailMessage |
||
38 | */ |
||
39 | public function toMail($notifiable) |
||
40 | { |
||
41 | return (new MailMessage()) |
||
42 | ->subject('Herstel jouw wachtwoord.') |
||
43 | ->from(chiefSetting('contact.email'), chiefSetting('contact.name')) |
||
44 | ->view('chief::back.mails.password-reset', [ |
||
45 | 'reset_url' => route('chief.back.password.reset', $this->token), |
||
46 | ]); |
||
47 | } |
||
48 | |||
49 | /** |
||
50 | * Get the array representation of the notification. |
||
51 | * |
||
52 | * @param mixed $notifiable |
||
53 | * @return array |
||
54 | */ |
||
55 | public function toArray($notifiable) |
||
56 | { |
||
57 | return [ |
||
58 | // |
||
62 |