title: Missing auth or preview (View: /Users/am-macmini-ftndw/Desktop/Lass/enrollca/resources/views/layouts/partials/gtm-head.blde
body: <p>I don't know what is the problem and don't know how to solve it.</p>
  <p><strong>GoogleTagManager</strong>:</p>
  <pre><code>namespace App\Helpers;
  
  public function __construct(array $config)
  {
      if (!isset($config['auth']) || !isset($config['preview'])) {
          throw new \InvalidArgumentException('Missing auth or preview');
      }
  </code></pre>
  <p><strong>gtm-header.blade</strong>:</p>
  <pre><code>@php
    $gtm = app(App\Helpers\GoogleTagManager::class);
  
  @endphp
  &lt;!-- Google Tag Manager --&gt;
  &lt;script&gt;(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
  new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
  j=d.createElement(s),dl=l!='dataLayer'?'&amp;l='+l:'';j.async=true;j.src=
  'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
  })(window,document,'script','dataLayer','GTM-TWRGZ2F');&lt;/script&gt;
  &lt;!-- End Google Tag Manager --
  </code></pre>
  <p><strong>Error</strong>:</p>
  <blockquote>
  <p>Missing auth or preview (View:
  /Users/am-macmini-ftndw/Desktop/Lass/enrollca/resources/views/layouts/partials/gtm-head.blade.php)</p>
  </blockquote>