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