Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace App\Notifications;
- use Illuminate\Notifications\Notification;
- use NotificationChannels\SmscRu\SmscRuMessage;
- use NotificationChannels\SmscRu\SmscRuChannel;
- class ActivateUser extends Notification
- {
- public function via($notifiable)
- {
- return [SmscRuChannel::class];
- }
- public function toSmscRu($notifiable)
- {
- return SmscRuMessage()::create("Task is complete!");
- // Зачем () после SmscRuMessage?
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement