title: I want to add csrf_field() in javascript laravel
body: <pre><code>(function () {
          new _vue2.default({
              el: 'body',
  
              data: {
                  tableData: {
                      options: {
                          sortable: true,
                          editable: true,
                          pageCount: 10
                      },
  
                      columns: [{
                          value: 'id',
                          text: 'No',
                          sortable: true,
                          editable: false
                      }, {
                          value: 'name',
                          text: 'Name',
                          sortable: false,
                          editable: false,
                          isHTML: true
                      }, {
                          value: 'items',
                          text: '#of Items',
                          sortable: true,
                          editable: false
                      }, {
                          value: 'total',
                          text: 'Total',
                          sortable: true,
                          editable: false
                      },  {
                          value: 'click',
                          text: '',
                          sortable: false,
                          editable: false,
                          isHTML: true
                      },],
  
                      rows: [],
  
                      onPageChanged: function onPageChanged(page) {
                          console.log('Current page is ' + page);
                      }
                  }
              },
  
              ready: function ready() {
                  console.log(invoice.length);
                  var invoices = invoice;
                  var length = invoice.length;
  
                  for (var i = 0; i &lt; length; i++) {
                      var obj = {
                          id: {
                              value: i + 1
                          },
  
                          name: {
                              value: '&lt;a href="update/'+ invoices[i].id + '"&gt;' + invoices[i].invoice + '&lt;/a&gt;'
  
                          },
  
                          items: {
                              value: invoices[i].items ,
  
                          },
  
                          total: {
                              value: invoices[i].alltotal ,
  
                          },
  
  
  
                          click: {
                              value: '&lt;a href="pdf/'+ invoices[i].id + '"&gt;PDF&lt;/a&gt;&amp;nbsp;&amp;nbsp;  &lt;form method="POST" action="remove/'+ invoices[i].id + '"&gt;&lt;input type="hidden" name="_method" value="DELETE"&gt;&lt;button type="submit"&gt;Remove&lt;/button&gt;&lt;/form&gt;'
                          },
                      };
  
                      this.tableData.rows.push(obj);
                  }
              },
  
  
              components: {
                  DataTable: _DataTable2.default
              }
          });
      })();
  </code></pre>
  
  <p>I want to create delete form in click:{} because I want to use rout delete function in laravel 5.4.
  My html table is built with vue.js.So I need to write html code in vue.js. I get this error (TokenMismatchException in VerifyCsrfToken.php line 68:). If anyone know please answer me.</p>