title: The DELETE method is not supported for this route. Supported methods: GET, HEAD, POST
body: <p>I am creating an index form that displays some data. Everything is ready but when I make the delete button I get an error &quot;The DELETE method is not supported for this route. Supported methods: GET, HEAD, POST.&quot;</p>
  <p><strong>Route</strong></p>
  <pre><code>Route::group(['middleware' =&gt; ['auth']], function() {
      Route::resource('roles','RoleController');
      Route::resource('users','UserController');
      Route::resource('kamar_theresia','Kamar_TheresiaController');
  });
  </code></pre>
  <p><strong>Controller</strong></p>
  <pre><code>public function destroy($id)
  {
      Kamar_Theresia::find($id)-&gt;delete();
      return redirect()-&gt;route('kamar_theresia.index')
          -&gt;with('success','Kamar Theresia deleted successfully');
  }
  </code></pre>
  <p><strong>View</strong></p>
  <pre><code>        @foreach ($kamar_theresia as $tere)
          &lt;tr&gt;
              &lt;td&gt;{{ ++$i }}&lt;/td&gt;
              &lt;td&gt;{{ $tere-&gt;nama }}&lt;/td&gt;
              &lt;td&gt;{{ $tere-&gt;name }}&lt;/td&gt;
              &lt;td&gt;{{ $tere-&gt;ketersediaan }}&lt;/td&gt;
              &lt;td&gt;
                  @can('theresia-delete')
                  {!! Form::open(['method' =&gt; 'DELETE','route' =&gt; ['kamar_theresia.destroy', $tere-&gt;id],'style'=&gt;'display:inline']) !!}
                  {!! Form::submit('Delete', ['class' =&gt; 'btn btn-danger']) !!}
                  {!! Form::close() !!}
                  @endcan
              &lt;/td&gt;
          &lt;/tr&gt;
          @endforeach
  </code></pre>