token = $token; } /** * Get the notification's delivery channels. * * @param mixed $notifiable * @return array */ public function via($notifiable) { return ['mail']; } /** * Get the mail representation of the notification. * * @param mixed $notifiable * @return \Illuminate\Notifications\Messages\MailMessage */ public function toMail($notifiable) { $urlToResetForm = sprintf( '%s/auth/password-reset?token=%s', config('app.frontend_url', '#'), urlencode($this->token), ); return (new MailMessage) ->subject('Opnieuw instellen van wachtwoord') ->line('Je hebt aangegeven dat je je wachtwoord bent vergeten. Ga naar MijnGGZecademy en stel jouw nieuwe wachtwoord in.') ->action('Stel je wachtwoord in', $urlToResetForm); } /** * Get the array representation of the notification. * * @param mixed $notifiable * @return array */ public function toArray($notifiable) { return [ // ]; } }