class
Illuminate
/
Notifications
/
SendQueuedNotifications
You are viewing an older version of the documentation. For the latest, please visit master documentation.
SendQueuedNotifications
Implements
Uses
Properties
public
$notifiables Collection
The notifiable entities that should receive the notification.
Default: null
public
$channels array
All of the channels to send the notification to.
Default: null
public
$tries int
The number of times the job may be attempted.
Default: null
public
$timeout int
The number of seconds the job can run before timing out.
Default: null
public
$shouldBeEncrypted bool
Indicates if the job should be encrypted.
Default: false
Methods
public
__construct ( $notifiables , $notification , array $channels ) : void
Create a new job instance.
Parameters
- $notifiables Notifiable |Collection
- $notification Notification
- $channels array|null
protected
wrapNotifiables ( $notifiables ) : Collection
Wrap the notifiable(s) in a collection.
Parameters
- $notifiables Notifiable |Collection
public
handle ( ChannelManager $manager ) : void
Send the notifications.
Parameters
- $manager ChannelManager
public
displayName ( ) : string
Get the display name for the queued job.
public
failed ( $e ) : void
Call the failed method on the notification instance.
Parameters
- $e Throwable
public
backoff ( ) : mixed
Get the number of seconds before a released notification will be available.
public
retryUntil ( ) : mixed
Get the expiration for the notification.
public
__clone ( ) : void
Prepare the instance for cloning.