sdclub/laravel-mipush

MIPush expansion for Laravel

1.1 2017-06-29 17:59 UTC

This package is not auto-updated.

Last update: 2023-06-06 17:36:56 UTC


README

小米推送laravel扩展包, 根据官方最新SDK包整理

#安装方法 1、在项目目录下 composer require sdclub/laravel-mipush 或在 composer.json 中添加 "sdclub/laravel-mipush": "^1.2" 然后 composer update 如果无法安装 请执行一下 composer update nothing 然后 composer update

2、在config/app.php
   'providers' 中添加 Sdclub\MiPush\MiPushServiceProvider::class,
   'aliases'   中添加 'MiPush' => Sdclub\MiPush\Facades\MiPush::class,

3、执行 php artisan config:cache 清空配置缓存
   执行 php artisan vendor:publish --provider="Sdclub\MiPush\MiPushServiceProvider" 将配置文件发布到config文件夹中

4、配置 config/mipush.php

#使用方法(待完善)