I need my model to return only those records from one table where a matching record does not exist in another table. I was thinking that the solution might be with Query Sco
Something like
A::whereNotExists(function($query) { $query->select(DB::raw(1)) ->from('B') ->whereRaw('A.id = B.id'); }) ->get();