jenky / laravel-push-notification
Laravel 推送通知
dev-master
2017-01-26 15:37 UTC
Requires
- illuminate/config: 5.1.*|5.2.*|5.3.*|5.4.*
- illuminate/queue: 5.1.*|5.2.*|5.3.*|5.4.*
- sly/notification-pusher: ^2.2
Requires (Dev)
- phpunit/phpunit: 4.*
Suggests
- illuminate/notifications: Required to use Laravel Notifications (~5.3).
This package is auto-updated.
Last update: 2024-08-29 04:42:53 UTC
README
###### Laravel 推送通知包。
安装
使用 composer 安装此包
composer require jenky/laravel-push-notification
或在 composer.json
中添加此行
"jenky/laravel-push-notification": "^1.0"
更新 composer 后,将 ServiceProvider 添加到 config/app.php
中的 providers 数组
Jenky\LaravelPushNotification\PushNotificationServiceProvider::class,
可选:在 config/app.php
中添加 facade 配置
'PushNotification' => Jenky\LaravelPushNotification\Facades\PushNotification::class,
使用发布命令将包配置复制到本地配置文件
php artisan vendor:publish
或者
php artisan vendor:publish --provider="Jenky\LaravelPushNotification\PushNotificationServiceProvider"
用法
进行中(WIP)