Factory.php 770B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. namespace Illuminate\Contracts\Notifications;
  3. interface Factory
  4. {
  5. /**
  6. * Get a channel instance by name.
  7. *
  8. * @param string|null $name
  9. * @return mixed
  10. */
  11. public function channel($name = null);
  12. /**
  13. * Send the given notification to the given notifiable entities.
  14. *
  15. * @param \Illuminate\Support\Collection|array|mixed $notifiables
  16. * @param mixed $notification
  17. * @return void
  18. */
  19. public function send($notifiables, $notification);
  20. /**
  21. * Send the given notification immediately.
  22. *
  23. * @param \Illuminate\Support\Collection|array|mixed $notifiables
  24. * @param mixed $notification
  25. * @return void
  26. */
  27. public function sendNow($notifiables, $notification);
  28. }