1/**
2 * Get the mail representation of the notification.
3 *
4 * @param mixed $notifiable
5 * @return \Illuminate\Notifications\Messages\MailMessage
6 */
7 public function toMail($notifiable)
8 {
9 return (new MailMessage)
10 ->line('Please download the PDF.')
11 ->attach(public_path($this->filename), [
12 'as' => 'filename.pdf',
13 'mime' => 'text/pdf',
14 ]);
15 }