Skip to content

Commit f90afa9

Browse files
author
Davi Nunes
committed
laravel 5 migration
1 parent 3104fa2 commit f90afa9

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "davibennun/laravel-push-notification",
33
"description": "Laravel package to send push notifications to mobile devices (apns, gcm)",
4-
"keywords": ["apns","gcm","push","notification", "laravel"],
4+
"keywords": ["apns","gcm","push","notification", "laravel"],
55
"authors": [
66
{
77
"name": "DaviBenNun",
@@ -10,7 +10,7 @@
1010
],
1111
"require": {
1212
"php": ">=5.3.0",
13-
"illuminate/support": "4.*",
13+
"illuminate/support": "5.*",
1414
"sly/notification-pusher": "2.*"
1515
},
1616
"autoload": {

src/Davibennun/LaravelPushNotification/LaravelPushNotificationServiceProvider.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ class LaravelPushNotificationServiceProvider extends ServiceProvider {
1919
*/
2020
public function boot()
2121
{
22-
$this->package('davibennun/laravel-push-notification');
22+
$this->publishes([
23+
__DIR__.'/../../config/config.php' => config_path('push-notification.php')
24+
]);
2325
}
2426

2527
/**

src/Davibennun/LaravelPushNotification/PushNotification.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ class PushNotification {
44

55
public function app($appName)
66
{
7-
return new App(\Config::get('laravel-push-notification::'.$appName));
7+
return new App(config('push-notification.'.$appName));
88
}
99

1010
public function Message()

0 commit comments

Comments
 (0)