Documentation

SendQueuedNotifications
in package
implements ShouldQueue Uses Queueable, SerializesModels

Interfaces, Classes and Traits

ShouldQueue

Table of Contents

$chainConnection  : string|null
The name of the connection the chain should be sent to.
$chained  : array<string|int, mixed>
The jobs that should run if this job is successful.
$chainQueue  : string|null
The name of the queue the chain should be sent to.
$channels  : array<string|int, mixed>
All of the channels to send the notification too.
$connection  : string|null
The name of the connection the job should be sent to.
$delay  : DateTimeInterface|DateInterval|int|null
The number of seconds before the job should be made available.
$notifiables  : Collection
The notifiable entities that should receive the notification.
$notification  : Notification
The notification to be sent.
$queue  : string|null
The name of the queue the job should be sent to.
__clone()  : void
Prepare the instance for cloning.
__construct()  : void
Create a new job instance.
__sleep()  : array<string|int, mixed>
Prepare the instance for serialization.
__wakeup()  : void
Restore the model after serialization.
allOnConnection()  : $this
Set the desired connection for the chain.
allOnQueue()  : $this
Set the desired queue for the chain.
chain()  : $this
Set the jobs that should run if this job is successful.
delay()  : $this
Set the desired delay for the job.
dispatchNextJobInChain()  : void
Dispatch the next job on the chain.
displayName()  : string
Get the display name for the queued job.
failed()  : void
Call the failed method on the notification instance.
handle()  : void
Send the notifications.
onConnection()  : $this
Set the desired connection for the job.
onQueue()  : $this
Set the desired queue for the job.
getPropertyValue()  : mixed
Get the property value for the given property.

Properties

$chainConnection

The name of the connection the chain should be sent to.

public string|null $chainConnection

$chained

The jobs that should run if this job is successful.

public array<string|int, mixed> $chained = []

$chainQueue

The name of the queue the chain should be sent to.

public string|null $chainQueue

$channels

All of the channels to send the notification too.

public array<string|int, mixed> $channels

$connection

The name of the connection the job should be sent to.

public string|null $connection

$delay

The number of seconds before the job should be made available.

public DateTimeInterface|DateInterval|int|null $delay

$queue

The name of the queue the job should be sent to.

public string|null $queue

Methods

__sleep()

Prepare the instance for serialization.

public __sleep() : array<string|int, mixed>
Return values
array<string|int, mixed>

__wakeup()

Restore the model after serialization.

public __wakeup() : void
Return values
void

allOnConnection()

Set the desired connection for the chain.

public allOnConnection(string|null $connection) : $this
Parameters
$connection : string|null
Return values
$this

allOnQueue()

Set the desired queue for the chain.

public allOnQueue(string|null $queue) : $this
Parameters
$queue : string|null
Return values
$this

chain()

Set the jobs that should run if this job is successful.

public chain(array<string|int, mixed> $chain) : $this
Parameters
$chain : array<string|int, mixed>
Return values
$this

delay()

Set the desired delay for the job.

public delay(DateTimeInterface|DateInterval|int|null $delay) : $this
Parameters
$delay : DateTimeInterface|DateInterval|int|null
Return values
$this

dispatchNextJobInChain()

Dispatch the next job on the chain.

public dispatchNextJobInChain() : void
Return values
void

displayName()

Get the display name for the queued job.

public displayName() : string
Return values
string

failed()

Call the failed method on the notification instance.

public failed(Exception $e) : void
Parameters
$e : Exception
Return values
void

onConnection()

Set the desired connection for the job.

public onConnection(string|null $connection) : $this
Parameters
$connection : string|null
Return values
$this

onQueue()

Set the desired queue for the job.

public onQueue(string|null $queue) : $this
Parameters
$queue : string|null
Return values
$this

getPropertyValue()

Get the property value for the given property.

protected getPropertyValue(ReflectionProperty $property) : mixed
Parameters
$property : ReflectionProperty
Return values
mixed

Search results