Advertisement
Guest User

Untitled

a guest
Jan 24th, 2017
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. <?php
  2.  
  3. namespace App\Notifications;
  4.  
  5. use Illuminate\Notifications\Notification;
  6. use NotificationChannels\SmscRu\SmscRuMessage;
  7. use NotificationChannels\SmscRu\SmscRuChannel;
  8.  
  9. class ActivateUser extends Notification
  10. {
  11. public function via($notifiable)
  12. {
  13. return [SmscRuChannel::class];
  14. }
  15.  
  16. public function toSmscRu($notifiable)
  17. {
  18. return SmscRuMessage()::create("Task is complete!");
  19.  
  20. // Зачем () после SmscRuMessage?
  21.  
  22. }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement