Skip to content

Latest commit

 

History

History
41 lines (29 loc) · 824 Bytes

README.md

File metadata and controls

41 lines (29 loc) · 824 Bytes

laravel-wechat-notification

🌈 基于 EasyWeChat 和 Laravel 的模板消息通知组件。

Build Status

环境要求

  • PHP >= 7.2
  • Laravel >= 7.0
  • EasyWeChat >= 5.0

安装

$ composer require fcorz/laravel-wechat-notification -vvv

使用

User

class User
{
    use Notifiable;

    public function routeNotificationForWechat()
    {
        return 'xxxx'; // openid
    }
}

发送

\Notification::send($user, new \fcorz\WechatNotification\TemplateNotification($templateId, $url, $data));

参考

overtrue/laravel-wechat