+++ /dev/null
-<?php
-
-namespace Cubist\Gtag;
-
-use Illuminate\Support\ServiceProvider;
-
-
-class GtagFrontProvider extends ServiceProvider
-{
- /**
- * Perform post-registration booting of services.
- *
- * @return void
- */
- public function boot()
- {
- $resourcesDir= dirname(__DIR__) . '/resources';
-
- $this->loadViewsFrom($resourcesDir . '/views', 'gtag');
-
- $this->publishes([
- $resourcesDir . '/config/config.php' => config_path('gtag.php'),
- ], 'config');
-
- $this->publishes([
- $resourcesDir . '/views' => base_path('resources/views/vendor/cubist/gtag'),
- ], 'views');
-
- $this->app['view']->creator(
- ['gtag::body', 'gtag::head', 'gtag::script'],
- 'Cubist\Gtag\ScriptViewCreator'
- );
- }
-
- /**
- * Register the application services.
- */
- public function register()
- {
- $resourcesDir= dirname(__DIR__) . '/resources';
-
- $this->mergeConfigFrom($resourcesDir . '/config/config.php', 'gtag');
-
- $googleAnalytics = new GoogleAnalytics(config('gtag.id'));
-
- if (config('gtag.enabled') === false) {
- $googleAnalytics->disable();
- }
- $googleAnalytics->setObserveDnt(config('gtag.observe_dnt'));
-
- $this->app->instance('Cubist\Gtag\GoogleAnalytics', $googleAnalytics);
- $this->app->alias('Cubist\Gtag\GoogleAnalytics', 'gtag');
- }
-}
\ No newline at end of file
--- /dev/null
+<?php
+
+namespace Cubist\Gtag;
+
+use Illuminate\Support\ServiceProvider;
+
+
+class GtagServiceProvider extends ServiceProvider
+{
+ /**
+ * Perform post-registration booting of services.
+ *
+ * @return void
+ */
+ public function boot()
+ {
+ $resourcesDir= dirname(__DIR__) . '/resources';
+
+ $this->loadViewsFrom($resourcesDir . '/views', 'gtag');
+
+ $this->publishes([
+ $resourcesDir . '/config/config.php' => config_path('gtag.php'),
+ ], 'config');
+
+ $this->publishes([
+ $resourcesDir . '/views' => base_path('resources/views/vendor/cubist/gtag'),
+ ], 'views');
+
+ $this->app['view']->creator(
+ ['gtag::body', 'gtag::head', 'gtag::script'],
+ 'Cubist\Gtag\ScriptViewCreator'
+ );
+ }
+
+ /**
+ * Register the application services.
+ */
+ public function register()
+ {
+ $resourcesDir= dirname(__DIR__) . '/resources';
+
+ $this->mergeConfigFrom($resourcesDir . '/config/config.php', 'gtag');
+
+ $googleAnalytics = new GoogleAnalytics(config('gtag.id'));
+
+ if (config('gtag.enabled') === false) {
+ $googleAnalytics->disable();
+ }
+ $googleAnalytics->setObserveDnt(config('gtag.observe_dnt'));
+
+ $this->app->instance('Cubist\Gtag\GoogleAnalytics', $googleAnalytics);
+ $this->app->alias('Cubist\Gtag\GoogleAnalytics', 'gtag');
+ }
+}
\ No newline at end of file