Skip to content

Commit 36acca5

Browse files
committed
Laravel 5.4 compatiblity
1 parent cb5de5a commit 36acca5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Davibennun/LaravelPushNotification/LaravelPushNotificationServiceProvider.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@ public function boot()
2929
*/
3030
public function register()
3131
{
32-
$this->app['pushNotification'] = $this->app->share(function($app)
33-
{
32+
$this->app->singleton('pushNotification', function ($app) {
3433
return new PushNotification();
3534
});
3635
}

0 commit comments

Comments
 (0)