Skip to content

Commit

Permalink
Merge pull request #43 from fransjooste1/patch-1
Browse files Browse the repository at this point in the history
Change instance to bind in service provider
  • Loading branch information
freekmurze authored Dec 13, 2021
2 parents 3226a80 + 85642b8 commit a1590d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/GoogleTagManagerServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function register()
{
$this->mergeConfigFrom(__DIR__.'/../resources/config/config.php', 'googletagmanager');

$this->app->instance('Spatie\GoogleTagManager\GoogleTagManager', function($app) {
$this->app->bind('Spatie\GoogleTagManager\GoogleTagManager', function($app) {
$googleTagManager = new GoogleTagManager(config('googletagmanager.id'));

if (config('googletagmanager.enabled') === false) {
Expand Down

0 comments on commit a1590d1

Please sign in to comment.