title: Laravel - Method delete does not exist
body: <p>I'm getting the error:</p>
  
  <blockquote>
    <p>BadMethodCallException in Macroable.php line 74: Method delete does
    not exist.</p>
  </blockquote>
  
  <p><strong>route:</strong></p>
  
  <pre><code>Route::resource('posts', 'PostController');
  </code></pre>
  
  <p><strong>my controller:</strong></p>
  
  <pre><code>public function destroy($id)
  {
      $user_id = Auth::user();
      $post= Post::where('id', $id)-&gt;where('user_id',$user_id)-&gt;get();
      $post-&gt;delete();
  
      return view('/home', [
          'posts' =&gt; $post
      ]);
  }
  </code></pre>
  
  <p><strong>view:</strong></p>
  
  <pre><code>  &lt;form action="{{ route('posts.destroy', '$post-&gt;id') }}" method="post"&gt;
    &lt;input type="hidden" name="_method" value="DELETE" /&gt;
        {{ csrf_field() }}
         {{ method_field('DELETE') }}
  
     &lt;input type="submit" class="btn btn-danger" value="delete" /&gt;
    &lt;/form&gt;
  </code></pre>
  
  <p>I tried changing <code>method="post"</code> to <code>delete</code>: error is gone but nothing gets deleted..</p>