title: How Link to Route in JS
body: <p>I'm using Laravel 8.</p>
  <p>I wish I could link the field &quot;nama&quot; to show the categories in detail (the examples in red arrows).</p>
  <p><a href="https://i.stack.imgur.com/wZfL6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wZfL6.png" alt="enter image description here" /></a></p>
  <p><strong>JS for table</strong></p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>@push('scripts')
  &lt;script&gt;
  $(function() {
      $('#kategoris-table').DataTable({
          processing: true,
          serverSide: true,
          ajax: 'kategori/json',
          columns: [
              { data: 'id', name: 'id' },
              { data: 'nama', name: 'nama' },
              { data: 'created_at', name: 'created_at' },
              { data: 'updated_at', name: 'updated_at' }
          ]
      });
  });
  &lt;/script&gt;
  @endpush</code></pre>
  </div>
  </div>
  </p>
  <p>I also wish to know how to set the date format because when I looked at that field it feels so messed up. Here's my view table.</p>
  <p><a href="https://i.stack.imgur.com/oXC1a.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/oXC1a.png" alt="enter image description here" /></a></p>