libressltd/lbusermanual

推送通知中心

0.3.3.2 2017-02-23 03:24 UTC

This package is not auto-updated.

Last update: 2024-09-14 20:15:01 UTC


README

步骤 1:安装 DeepPermission

composer require libressltd/lbpushcenter

步骤 2:将服务提供者添加到 config/app.php

LIBRESSLtd\LBPushCenter\LBPushCenterServiceProvider::class,

以及别名

'LBPushCenter' => LIBRESSLtd\LBPushCenter\Controllers\LBPushCenter::class,

步骤 3:发布供应商

php artisan vendor:publish --tag=lbpushcenter --force

步骤 3:在主分支中使用

use LBPushCenter;

LBPushCenter::push(array(
	array("type" => "appNameIOS", "token" => "a-device-token"),
	array("type" => "appNameAndroid", "token" => "a-device-token"),
), "Message to push")