Skip to content

Commit

Permalink
laravel 5.4 support - update
Browse files Browse the repository at this point in the history
this should be better
  • Loading branch information
jozefbalun authored Jan 28, 2017
1 parent e8fe4c4 commit 0e6c562
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Kamaln7/Toastr/ToastrServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,8 @@ public function boot()
*/
public function register()
{
$this->app['toastr'] = $this->app->singleton(function ($app)
{
return new Toastr($app['session'], $app['config']);
$this->app->singleton('toastr', function ($app) {
return new Toastr($app['session'], $app['config']);
});
}

Expand Down

0 comments on commit 0e6c562

Please sign in to comment.