AppRequest::where('id',4) ->whereHas('quotes', function ($query) { $query->where('status','=','3'); }) ->with('quotes','sourceTable','destinationTable') ->get();