Skip to content

Commit

Permalink
Removed undefined method exception
Browse files Browse the repository at this point in the history
Fixes the following error exception when adding the flash notifications package in laravel 5.2:

    [RuntimeException]                                                                                                                                                     
    Error Output: PHP Fatal error:  Call to undefined method Illuminate\Foundation\Application::bindShared() in /var/www/html/laravel-app/vendor/srmklive/flash-notifications/src/FlashAlertServiceProvider.php on line 61
  • Loading branch information
srmklive committed Feb 2, 2016
1 parent 9d16431 commit 385db5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/FlashAlertServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ private function registerFlashAlert()
'Srmklive\FlashAlert\FlashAlertSessionStore'
);

$this->app->bindShared('flashalert', function() {
$this->app->singleton('flashalert', function() {
return $this->app->make('Srmklive\FlashAlert\FlashAlertHandler');
});
}
Expand Down

0 comments on commit 385db5f

Please sign in to comment.