Skip to content

Commit

Permalink
Merge pull request #3 from jozefbalun/patch-2
Browse files Browse the repository at this point in the history
laravel 5.4 support - update
  • Loading branch information
oriceon authored Jan 28, 2017
2 parents e8fe4c4 + 0e6c562 commit 148d274
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 148d274

Please sign in to comment.