NotificationSender (Notifications)

NotificationSender

class NotificationSender (View source)

Methods

void __construct(ChannelManager $manager, Dispatcher $bus, Dispatcher $events)

Create a new notification sender instance.

void send(Collection|array|mixed $notifiables, mixed $notification)

Send the given notification to the given notifiable entities.

void sendNow(Collection|array|mixed $notifiables, mixed $notification, array $channels = null)

Send the given notification immediately.

Details

void __construct(ChannelManager $manager, Dispatcher $bus, Dispatcher $events)

Create a new notification sender instance.

Parameters

ChannelManager $manager
Dispatcher $bus
Dispatcher $events

Return Value

void

void send(Collection|array|mixed $notifiables, mixed $notification)

Send the given notification to the given notifiable entities.

Parameters

Collection|array|mixed $notifiables
mixed $notification

Return Value

void

void sendNow(Collection|array|mixed $notifiables, mixed $notification, array $channels = null)

Send the given notification immediately.

Parameters

Collection|array|mixed $notifiables
mixed $notification
array $channels

Return Value

void

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.4/Illuminate/Notifications/NotificationSender.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部