1 頁 (共 1 頁)

laravel-push-notification

發表於 : 2014-11-27 14:01:10
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.