title: WhereNotExists Laravel Eloquent
body: <p>Little bit of trouble with the eloquent framework for laravel. </p>
  
  <p>I need to replicate a query like this : </p>
  
  <pre><code>SELECT *
  FROM RepairJob
  WHERE NOT EXISTS (SELECT repair_job_id
      FROM DismissedRequest
      WHERE RepairJob.id = DismissedRequest.repair_job_id);
  </code></pre>
  
  <p>Right now I have </p>
  
  <pre><code> $repairJobs = RepairJob::with('repairJobPhoto', 'city', 'vehicle')-&gt;where('active', '=', 'Y')-&gt;whereNotExists('id', [DismissedRequest::all('repair_job_id')])-&gt;get();
  </code></pre>
  
  <p>Anyone an idea? I need to get all the repairjobs where there is no record for in the dismissed requests table</p>
  
  <p>I get this error when using the query above </p>
  
  <pre><code>Argument 1 passed to Illuminate\Database\Query\Builder::whereNotExists() must be an instance of Closure, string given
  </code></pre>