$this->loadViewsFrom($customViewsFolder, 'cubist');
}
// - then the stock views that come with the package, in case a published view might be missing
- $this->loadViewsFrom(realpath(__DIR__.'/resources/views'), 'cubist');
+ $this->loadViewsFrom(realpath(__DIR__ . '/resources/views'), 'cubist');
// publish config file
- $this->publishes([__DIR__.'/config/cubist-front.php' => config_path('cubist-front.php')], 'config');
+ $this->publishes([__DIR__ . '/config/cubist-front.php' => config_path('cubist-front.php')], 'config');
+ $this->publishes([__DIR__ . '/config/googletagmanager.php' => config_path(__DIR__ . '/config/googletagmanager.php')], 'config');
// publish the views
- $this->publishes([__DIR__.'/resources/views' => resource_path('views/vendor/cubist/front')], 'views');
+ $this->publishes([__DIR__ . '/resources/views' => resource_path('views/vendor/cubist/front')], 'views');
}
}
\ No newline at end of file
--- /dev/null
+<?php
+
+return [
+
+ /*
+ * The Google Tag Manager id, should be a code that looks something like "gtm-xxxx".
+ */
+ 'id' => env('GOOGLE_ANALYTICS_ID', ''),
+
+ /*
+ * Enable or disable script rendering. Useful for local development.
+ */
+ 'enabled' => env('GOOGLE_ANALYTICS_ID', '') != '',
+
+ /*
+ * If you want to use some macro's you 'll probably store them
+ * in a dedicated file. You can optionally define the path
+ * to that file here and we will load it for you.
+ */
+ 'macroPath' => '',
+
+ /*
+ * The key under which data is saved to the session with flash.
+ */
+ 'sessionKey' => '_googleTagManager',
+
+];