title: Laravel + Vue Application error with undefined function csfr_token()
body: <p>working with Laravel and Vue js Application. and I have following welcome.blade.php file script in head tag</p>
  <pre class="lang-js prettyprint-override"><code>&lt;script&gt;
          (function () {
              window.Laravel = {
                  csrfToken: '{{ csfr_token() }}'
              };
          })();
      &lt;/script&gt;
  
  </code></pre>
  <p>and try to upload image in category.vue file as following</p>
  <pre class="lang-html prettyprint-override"><code>&lt;Modal
                     v-model=&quot;addModal&quot;
                     title=&quot;Add Category&quot;
                     :mask-closable=&quot;false&quot;
                     :closable=&quot;false&quot;
                     &gt;
                     
                    &lt;Input v-model=&quot;data.tagName&quot; placeholder=&quot;Add Category Name&quot; style=&quot;width: 300px&quot; /&gt;
                    &lt;div class=&quot;space&quot;&gt;&lt;/div&gt;
                    &lt;Upload
                      
                       type=&quot;drag&quot;
                       :headers=&quot;{'x-csrf-token' : token}&quot;
                       action=&quot;/app/upload&quot;&gt;
                       &lt;div style=&quot;padding: 20px 0&quot;&gt;
                       &lt;Icon type=&quot;ios-cloud-upload&quot; size=&quot;52&quot; style=&quot;color: #3399ff&quot;&gt;&lt;/Icon&gt;
                       &lt;p&gt;Click or drag files here to upload&lt;/p&gt;
                        &lt;/div&gt;
                      &lt;/Upload&gt;
                    &lt;div slot=&quot;footer&quot;&gt;
                        &lt;Button type=&quot;default&quot; @click=&quot;addModal&quot;&gt;Close&lt;/Button&gt;
                        &lt;Button type=&quot;primary&quot; @click=&quot;addTag&quot; :disabled=&quot;isAdding&quot; :loading=&quot;isAdding&quot;&gt;{{isAdding ? 'Adding..' : 'Add Tag'}}&lt;/Button&gt;
  
                    &lt;/div&gt;
                 &lt;/Modal&gt;
  </code></pre>
  <p>but when run the program it is generating following error message
  <code>Symfony\Component\Debug\Exception\FatalThrowableError Call to undefined function csfr_token() (View: F:\2021 Technics\vue + laravel\fullstack\resources\views\welcome.blade.php) </code></p>
  <p>how to fix this problem?</p>