更新代码
This commit is contained in:
19
app/Channels/WeChatChannel.php
Normal file
19
app/Channels/WeChatChannel.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
namespace App\Channels;
|
||||
|
||||
use Illuminate\Notifications\Notification;
|
||||
|
||||
class WeChatChannel
|
||||
{
|
||||
/**
|
||||
* 发送给定的通知
|
||||
* @param mixed $notifiable
|
||||
* @param \Illuminate\Notifications\Notification $notification
|
||||
* @return void
|
||||
*/
|
||||
public function send($notifiable, Notification $notification)
|
||||
{
|
||||
$message = $notification->toWechat($notifiable);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user