class Illuminate / Notifications / ChannelManager
You are viewing an older version of the documentation. For the latest, please visit master documentation.

ChannelManager

Extends

Implements

Properties

protected

$defaultChannel string

The default channel used to deliver messages.

Default: 'mail'
protected

$locale string|null

The locale used when sending notifications.

Default: null

Methods

public

send ( $notifiables , $notification ) : void

Send the given notification to the given notifiable entities.

Parameters

  • $notifiables Collection |array|mixed
  • $notification mixed
public

sendNow ( $notifiables , $notification , array $channels ) : void

Send the given notification immediately.

Parameters

  • $notifiables Collection |array|mixed
  • $notification mixed
  • $channels array|null
public

channel ( $name ) : mixed

Get a channel instance.

Parameters

  • $name string|null
protected

createDatabaseDriver ( ) : DatabaseChannel

Create an instance of the database driver.

protected

createBroadcastDriver ( ) : BroadcastChannel

Create an instance of the broadcast driver.

protected

createMailDriver ( ) : MailChannel

Create an instance of the mail driver.

protected

createDriver ( $driver ) : mixed

Create a new driver instance.

Parameters

  • $driver string
public

getDefaultDriver ( ) : string

Get the default channel driver name.

public

deliversVia ( ) : string

Get the default channel driver name.

public

deliverVia ( $channel ) : void

Set the default channel driver name.

Parameters

  • $channel string
public

locale ( $locale ) : $this

Set the locale of notifications.

Parameters

  • $locale string