NotificationSender
class NotificationSender
Properties
protected ChannelManager | $manager | The notification manager instance. |
|
protected Dispatcher | $bus | The Bus dispatcher instance. |
|
protected Dispatcher | $events | The event dispatcher. |
Methods
Create a new notification sender instance.
Send the given notification to the given notifiable entities.
Send the given notification immediately.
Send the given notification to the given notifiable via a channel.
Determines if the notification can be sent.
Queue the given notification instances.
Format the notifiables into a Collection / array if necessary.
Details
at line 42
void
__construct(ChannelManager $manager, Dispatcher $bus, Dispatcher $events)
Create a new notification sender instance.
at line 56
void
send(Collection|array|mixed $notifiables, mixed $notification)
Send the given notification to the given notifiable entities.
at line 75
void
sendNow(Collection|array|mixed $notifiables, mixed $notification, array $channels = null)
Send the given notification immediately.
at line 103
protected void
sendToNotifiable(mixed $notifiable, string $id, mixed $notification, string $channel)
Send the given notification to the given notifiable via a channel.
at line 128
protected bool
shouldSendNotification(mixed $notifiable, mixed $notification, string $channel)
Determines if the notification can be sent.
at line 142
protected void
queueNotification(mixed $notifiables, $notification)
Queue the given notification instances.
at line 172
protected Collection|array
formatNotifiables(mixed $notifiables)
Format the notifiables into a Collection / array if necessary.