class
Illuminate
/
Notifications
/
ChannelManager
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.
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 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
public
channel ( $name ) : mixed
Get a channel instance.
Parameters
- $name string|null
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