--- /dev/null
+<?php
+return [];
\ 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_TAGMANAGER_ID', ''),
+
+ /*
+ * Enable or disable script rendering. Useful for local development.
+ */
+ 'enabled' => env('GOOGLE_TAGMANAGER_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',
+
+];
--- /dev/null
+@include('googletagmanager::body')
+@include('gtag::body')
\ No newline at end of file
--- /dev/null
+@stack('scripts')
\ No newline at end of file
--- /dev/null
+@include('cubist::head.meta')
+@include('cubist::head.link')
+@stack('stylesheets')
+@include('googletagmanager::head')
+@include('gtag::head')
\ No newline at end of file
--- /dev/null
+<!doctype html>
+<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
\ No newline at end of file
--- /dev/null
+<title>{{$page->meta_title}}</title>
+<meta charset="utf-8">
+<meta name="viewport" content="width=device-width, initial-scale=1">
+<meta name="description" content="{{$page->meta_description}}">
+<meta name="robots" content="{{$page->robots=='1'?'index,follow':'noindex,nofollow'}}">
+@stack('head.meta')
\ No newline at end of file
*/
public function boot()
{
+ $resourcesDir = __DIR__ . '/../resources';
+
// LOAD THE VIEWS
// - first the published/overwritten views (in case they have any changes)
$customViewsFolder = resource_path('views/vendor/cubist/front');
$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($resourcesDir . '/views'), 'cubist');
// publish config file
- $this->publishes([__DIR__ . '/config/cubist-front.php' => config_path('cubist-front.php')], 'config');
- $this->publishes([__DIR__ . '/config/googletagmanager.php' => config_path('googletagmanager.php')], 'config');
+ $this->publishes([$resourcesDir . '/config/cubist-front.php' => config_path('cubist-front.php')], 'config');
+ $this->publishes([$resourcesDir . '/config/googletagmanager.php' => config_path('googletagmanager.php')], 'config');
// publish the views
- $this->publishes([__DIR__ . '/resources/views' => resource_path('views/vendor/cubist/front')], 'views');
+ $this->publishes([$resourcesDir . '/views' => resource_path('views/vendor/cubist/front')], 'views');
}
}
\ No newline at end of file
+++ /dev/null
-<?php
-return [];
\ 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_TAGMANAGER_ID', ''),
-
- /*
- * Enable or disable script rendering. Useful for local development.
- */
- 'enabled' => env('GOOGLE_TAGMANAGER_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',
-
-];
+++ /dev/null
-@include('googletagmanager::body')
-@include('gtag::body')
\ No newline at end of file
+++ /dev/null
-@stack('scripts')
\ No newline at end of file
+++ /dev/null
-@include('cubist::head.meta')
-@include('cubist::head.link')
-@stack('stylesheets')
-@include('googletagmanager::head')
-@include('gtag::head')
\ No newline at end of file
+++ /dev/null
-<!doctype html>
-<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
\ No newline at end of file
+++ /dev/null
-<title>{{$page->meta_title}}</title>
-<meta charset="utf-8">
-<meta name="viewport" content="width=device-width, initial-scale=1">
-<meta name="description" content="{{$page->meta_description}}">
-<meta name="robots" content="{{$page->robots=='1'?'index,follow':'noindex,nofollow'}}">
-@stack('head.meta')
\ No newline at end of file