title: Laravel whereHas is works as INNER JOIN?
body: <p>I use <code>whereHas</code> in Laravel to build query:</p>
  
  <pre><code>})-&gt;whereHas('results', function ($query) use ($issued, $mode, $request) {
  
              if (($request-&gt;get("filter"))) {
                  $query-&gt;where('issued', 0);
              }
  
          })-&gt;orderBy('created_at', 'desc')-&gt;paginate();
  </code></pre>
  
  <p>This quesry returns zero rows because there are now rows in table <code>results</code> for </p>
  
  <pre><code> $query-&gt;where('issued', 0);
  </code></pre>
  
  <p>How to do that <code>whereHas</code> works as <code>LEFT JOIN</code>? Now it works as <code>INNER JOIN</code></p>