]> BookStack Code Mirror - bookstack/blob - app/Notifications/MailNotification.php
Fixed local_secure_restricted preventing attachment uploads
[bookstack] / app / Notifications / MailNotification.php
1 <?php
2
3 namespace BookStack\Notifications;
4
5 use Illuminate\Bus\Queueable;
6 use Illuminate\Contracts\Queue\ShouldQueue;
7 use Illuminate\Notifications\Messages\MailMessage;
8 use Illuminate\Notifications\Notification;
9
10 class MailNotification extends Notification implements ShouldQueue
11 {
12     use Queueable;
13
14     /**
15      * Get the notification's channels.
16      *
17      * @param mixed $notifiable
18      *
19      * @return array|string
20      */
21     public function via($notifiable)
22     {
23         return ['mail'];
24     }
25
26     /**
27      * Create a new mail message.
28      *
29      * @return MailMessage
30      */
31     protected function newMailMessage()
32     {
33         return (new MailMessage())->view([
34             'html' => 'vendor.notifications.email',
35             'text' => 'vendor.notifications.email-plain',
36         ]);
37     }
38 }