BaseNotification

via

Returns an array of channel names to send this notification on.

NameTypeRequiredDefaultDescription

notifiable

true

The notifiable instance being sent this notification instance.

Return: An array of string channel names.

populate

Populates the passed in struct of properties onto the variables scope of the Notification.

NameTypeRequiredDefaultDescription

properties

struct

false

{}

The properties to populate.

Return: The Notification instance.

routeForType

Routes the notification to the correct to{ChannelType} method.

NameTypeRequiredDefaultDescription

type

string

true

The type of channel to route to.

notifiable

true

The notifiable instance the notification is being sent to.

channelName

string

true

The name of the channel to route to.

additionalArgs

struct

false

{}

Any additional arguments to pass to the routing method (to{ChannelType} method).

Return: The result of the routing method. The variable type depends on the Provider.

getNotificationType

Returns the WireBox ID of the Notification.

NameTypeRequiredDefaultDescription

No arguments

Return: (string) The WireBox ID of the Notification.

Last updated