class
Illuminate
/
Notifications
/
NotificationSender
NotificationSender
Uses
Properties
protected
$locale string|null
The locale to be used when sending notifications.
Default: null
Methods
public
__construct ( $manager , $bus , $events , $locale ) : void
Create a new notification sender instance.
Parameters
- $manager ChannelManager
- $bus Dispatcher
- $events Dispatcher
- $locale string|null
public
send ( $notifiables , $notification ) : void
Send the given notification to the given notifiable entities.
Parameters
- $notifiables Illuminate\...\Collection|array|mixed
- $notification mixed
public
sendNow ( $notifiables , $notification , array $channels ) : void
Send the given notification immediately.
Parameters
- $notifiables Illuminate\...\Collection|array|mixed
- $notification mixed
- $channels array|null
protected
preferredLocale ( $notifiable , $notification ) : string|null
Get the notifiable's preferred locale for the notification.
Parameters
- $notifiable mixed
- $notification mixed
protected
sendToNotifiable ( $notifiable , $id , $notification , $channel ) : void
Send the given notification to the given notifiable via a channel.
Parameters
- $notifiable mixed
- $id string
- $notification mixed
- $channel string
protected
shouldSendNotification ( $notifiable , $notification , $channel ) : bool
Determines if the notification can be sent.
Parameters
- $notifiable mixed
- $notification mixed
- $channel string
protected
queueNotification ( $notifiables , $notification ) : void
Queue the given notification instances.
Parameters
- $notifiables mixed
- $notification Notification
protected
formatNotifiables ( $notifiables ) : Illuminate\...\Collection|array
Format the notifiables into a Collection / array if necessary.
Parameters
- $notifiables mixed