title: Eloquent: hasNot with parameter
body: <p>I have the following eloquent models:</p>
  
  <p><strong>User</strong> | id</p>
  
  <p><strong>Post</strong> | id</p>
  
  <p><strong>Comment</strong> | id | post_id | user_id</p>
  
  <p>Using eloquent, how can I fetch all Posts which a specific User hasn't commented yet?</p>
  
  <p>I tried so far:</p>
  
  <p>In Model <strong>Post</strong>:</p>
  
  <pre><code>public function noCommentOf(User $user) {
      $this-&gt;hasNot('App\Comment')-&gt;commentOf($user);
  }
  </code></pre>
  
  <p>In Model <strong>Comment</strong>:</p>
  
  <pre><code>public function commentOf($query, User $user) {
      return $query-&gt;where('user_id', '=', $user-&gt;id);
  }
  </code></pre>