Skip to content

Commit 6970bbe

Browse files
authored
Merge pull request davibennun#160 from byhbt/laravel5
Change shared to singleton for supporting Laravel 5.4
2 parents b703b0f + b84926c commit 6970bbe

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
@@ -32,8 +32,7 @@ public function boot()
3232
*/
3333
public function register()
3434
{
35-
$this->app['pushNotification'] = $this->app->share(function($app)
36-
{
35+
$this->app->singleton('pushNotification', function ($app) {
3736
return new PushNotification();
3837
});
3938
}

0 commit comments

Comments
 (0)