-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathMerryChristmas.php
49 lines (38 loc) · 1.04 KB
/
MerryChristmas.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?php
namespace App\Notifications;
use Illuminate\Bus\Queueable;
use Illuminate\Notifications\Notification;
use Nexmo\Notifications\Sms;
use Nexmo\Notifications\WhatsApp;
use Nexmo\Notifications\Facebook;
use Nexmo\Notifications\ViberServiceMessage;
use Nexmo\Notifications\Message\Text;
class MerryChristmas extends Notification
{
use Queueable;
public function via($notifiable)
{
return [
Sms::class,
WhatsApp::class,
Facebook::class,
ViberServiceMessage::class,
];
}
public function toNexmoWhatsApp($notifiable)
{
return (new Text)->content('Merry Christmas WhatsApp!');
}
public function toNexmoFacebook($notifiable)
{
return (new Text)->content('Merry Christmas Facebook!');
}
public function toNexmoViberServiceMessage($notifiable)
{
return (new Text)->content('Merry Christmas Viber!');
}
public function toNexmoSms($notifiable)
{
return (new Text)->content('Merry Christmas SMS!');
}
}