title: my GET method is not supported for this route. (for delete) Laravel 5.8
body: <p>I have table view with datatables yajra . before i using datatable my delete is normaly ,but after using datatables my delete have error like this </p>
  
  <blockquote>
    <p>The GET method is not supported for this route. Supported methods: DELETE.</p>
  </blockquote>
  
  <p>i using route delete but its didint work . can you correct my code ?</p>
  
  <p>view</p>
  
  <pre><code> &lt;div class="box-body table-responsive no-padding"&gt;
              &lt;table class="table table-hover" id="table"&gt;
                &lt;tbody&gt;&lt;tr&gt;
                  &lt;thead&gt;
                  {{--  &lt;th&gt;No&lt;/th&gt;  --}}
                  &lt;th&gt;Nama Alat&lt;/th&gt;
                  &lt;th&gt;Waktu&lt;/th&gt;
                  &lt;th&gt;User Input&lt;/th&gt;
                  &lt;th&gt;Action&lt;/th&gt;
                  &lt;th&gt;Edit&lt;/th&gt;
                  &lt;th&gt;Hapus&lt;/th&gt;
                  &lt;th&gt;Tanggal&lt;/th&gt;
                  &lt;/thead&gt;
                 &lt;/tr&gt;
  
  
  @push('scripts')
      &lt;script&gt;
          $(function () {
              $('#table').DataTable({
                  processing: true,
                  serverSide: true,
                  responsive: true,
                  ajax: '{!! route('adminshow1dt') !!}',
                  columns: [
  
                      {data: 'alat.nama_alat', name: 'alat.nama_alat'},
                      {data: 'status', name: 'pemeliharaan.status'},
                      {data: 'user.name', name: 'user.name'},
                      {data: 'action', name: 'action', orderable: false, searchable: false},
                      {data: 'edit', name: 'edit', orderable: false, searchable: false},
                      {data: 'hapus', name: 'hapus', orderable: false, searchable: false},
                      {data: 'created_at', name: 'created_at'},
  
                  ],
              });
          })
      &lt;/script&gt;
  @endpush
  </code></pre>
  
  <p>my controller and route</p>
  
  <pre><code>public function show()
  {
      // $pemeliharaan = Pemeliharaan::all();
      // $pemeliharaan = Pemeliharaan::find($id);
      $pemeliharaan = Pemeliharaan::with(['user', 'alat'])-&gt;where('status', 'harian')-&gt;get();
  
      return view('admin.view_harian', ['pemeliharaan' =&gt; $pemeliharaan]);
  }
  
  public function indexDataTablesh()
  {
      $pemeliharaan = Pemeliharaan::with(['user', 'alat'])-&gt;where('status', 'harian')-&gt;get();
  
      return Datatables::of($pemeliharaan)
          -&gt;addColumn('action', function ($pemeliharaan) {
              return '&lt;a href="/admin/show/question/' . $pemeliharaan-&gt;id . '" class="btn btn-xs btn-primary"&gt;&lt;i class="glyphicon glyphicon-eye-open"&gt;&lt;/i&gt; View Data&lt;/a&gt;';
          })
          -&gt;editColumn('edit', function ($pemeliharaan) {
              return '&lt;a href="/admin/' . $pemeliharaan-&gt;id . '/edit_harian" class="btn btn-xs btn-success"&gt;&lt;i class="glyphicon glyphicon-edit"&gt;&lt;/i&gt; Edit&lt;/a&gt;';
          })
          -&gt;editColumn('hapus', function ($pemeliharaan) {
              return '&lt;a href="/admin/delete1/' . $pemeliharaan-&gt;id . '" class="btn btn-xs btn-danger"&gt;&lt;i class="glyphicon glyphicon-remove-circle"&gt;&lt;/i&gt; Hapus&lt;/a&gt;';
          })
          -&gt;rawColumns(['hapus' =&gt; 'hapus', 'action' =&gt; 'action', 'edit' =&gt; 'edit'])
          -&gt;make(true);
  }
  </code></pre>
  
  <p>Routes</p>
  
  <pre><code>Route::delete('/admin/delete1/{id}', 'adminController@destroy1' )-&gt;name('delete1');
  Route::get('admin/show1', 'adminController@show')-&gt;name('adminshow1');
  Route::get('admin/show1-dt', 'adminController@indexDataTablesh')-&gt;name('adminshow1dt');
  </code></pre>
  
  <p>can you correct this code plz ?</p>