Looking to hire Laravel developers? Try LaraJobs

laravel-log-wechat maintained by stonecutter

Description
Laravel Logging Channel WeChat
Author
Last update
2018/11/21 10:02 (dev-master)
License
Links
Downloads
763

Comments
comments powered by Disqus

Laravel Log WeChat

服务器错误日志发送到 多人微信。

支持:Laravel 5.6、5.7

感谢:PushBear - 基于微信模板的一对多消息送达服务

使用步骤

登录 PushBear,创建 消息通道,获得二维码(多人扫码收消息)和秘钥。

PushBear 消息通道管理

把秘钥放在 Laravel 环境变量里,比如:

LOG_WECHAT_PUSHBEAR_SEND_KEY=6767-xxx

安装 package

composer require stonecutter/laravel-log-wechat
php artisan vendor:publish --tag=log-wechat-config --force

测试发送

php artisan wechat:hello

或者在项目代码里使用

Log::error('你好,之华', ['city' => 'Shanghai', 'sender' => '尹川']);

效果:

微信收到消息