laravel-push-notification

http://laravel.com/

http://kejyun.github.io/Laravel-4-Docum ... roduction/
回覆文章
yehlu
Site Admin
文章: 3245
註冊時間: 2004-04-15 17:20:21
來自: CodeCharge Support Engineer

laravel-push-notification

文章 yehlu »

代碼: 選擇全部

https://github.com/davibennun/laravel-push-notification
1.composer.json

代碼: 選擇全部

    "davibennun/laravel-push-notification": "dev-master"   
2.app/config/app.php

代碼: 選擇全部

'providers' => array(
    Davibennun\LaravelPushNotification\LaravelPushNotificationServiceProvider
)
'aliases' => array(
    'PushNotification' => 'Davibennun\LaravelPushNotification\Facades\PushNotification'
)
3.

代碼: 選擇全部

php artisan config:publish davibennun/laravel-push-notification
4.
app\config\packages\davibennun\laravel-push-notification\config.php

代碼: 選擇全部

array(
    'appNameIOS'=>array(
        'environment'=>'development',
        'certificate'=>'/path/to/certificate.pem',
        'passPhrase'=>'password',
        'service'=>'apns'
    ),
    'appNameAndroid'=>array(
        'environment'=>'production',
        'apiKey'=>'yourAPIKey',
        'service'=>'gcm'
    )
);
5.
回覆文章

回到「laravel」