title: Laravel 8: delete() does not delete from the DB
body: <p>I'm working with Laravel 8 to develop my forum and I wanted to add some Like and Unlike functionality to question that have been asked by users.</p>
  <p>So Like function works fine but for Unlike, I got some problem.</p>
  <p>Here is the method for Unliking:</p>
  <pre><code>public function destroy(Question $id, Request $request)
      {
          $request-&gt;user()-&gt;likes()-&gt;where('question_id', $id)-&gt;delete();
  
          return back();
      }
  </code></pre>
  <p>And here is the form behind this:</p>
  <pre><code>&lt;form action=&quot;{{ route('destroy.likes', $show-&gt;id) }}&quot; method=&quot;POST&quot;&gt;
     @csrf
     @method('DELETE')
     &lt;button class=&quot;btn&quot;&gt;
        &lt;i class=&quot;fas fa-thumbs-down&quot;&gt;&lt;/i&gt;
     &lt;/button&gt;
  &lt;/form&gt;
  </code></pre>
  <p>So the problem is it does not delete the data from table <code>likes</code> at the DB.</p>
  <p>I tried <code>dd($request-&gt;user());</code> and <code>dd($id);</code>, they both <em>exists</em> with correct data, but I don't know why <code>delete()</code> does not work properly.</p>
  <p>So if you know how to solve this, please let me know, I would really appreciate any idea or suggestion from you guys...</p>
  <p>Thanks in advance.</p>