1. Go to this page and download the library: Download hedeqiang/umeng library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
public function index()
{
return app('push.android')->send([]);
return app('push.android')->status([]);
return app('push.android')->cancel([]);
return app('push.android')->upload([]);
return app('push.ios')->send([]);
}
use Hedeqiang\UMeng\Facades\Push;
public function index()
{
Push::android()->send([]);
Push::android()->status([]);
Push::android()->cancel([]);
Push::android()->upload([]);
Push::ios()->send([]);
}