Little bit of trouble with the eloquent framework for laravel.
I need to replicate a query like this :
SELECT * FROM RepairJob WHERE NOT EXISTS (SE
Try doesntHave() method. Assuming 'dismissedRequests' as relation name in RepairJob model.
$jobs = RepairJob::with('repairJobPhoto', 'city', 'vehicle') ->where('active', 'Y')->doesntHave('dismissedRequests')->get();