Skip to content

fcorz/laravel-wechat-notification

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages