james.xue/laravel-notification-channels
最新稳定版本:v1.2.1
Composer 安装命令:
composer require james.xue/laravel-notification-channels
包简介
laravel notify channels
README 文档
README
Install
composer require james.xue/laravel-notification-channels
Publish Config
php artisan make:vendor publish --tag=laravel-notification-channels
Environment
Modify correspondence channel env configuration
Usage
use Illuminate\Support\Facades\Notification; use Vinhson\LaravelNotifications\Notifications\DingTalkNotification; Notification::send($this, new DingTalkNotification($title, $message)); or Notification::send($this, new DingTalkNotification(message: $message));
class NotifyController extends Controller { use Notifiable; public function index() { $user = User::factory()->create(); $this->notify(new DingTalkNotification('通知', '【golang】姓名:' . $user->name . ' 邮箱:' . $user->email)); config()->set('laravel-notifications.ding_talk.send_type', 'markdown'); $data = "#### \n > golang】姓名:" . $user->name . " # 邮箱:" . $user->email; $this->notify(new DingTalkNotification('Markdown 通知', $data)); return 'ok'; } }
Support Channel
| Channel | Notification |
|---|---|
| 钉钉 | DingTalkNotification::class |
| 企微 | WechatNotification::class |
| 飞书 | LarkNotification::class |
| pushplus | PushPlusNotification::class |
| Server 酱 | ServerNotification::class |
| 一封传话 | AMessageNotification::class |
| 息知 | XiZhiNotification::class |
统计信息
- 总下载量: 15
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-01-25