Merhabalar iyi akşamlar herkese,
$query->join("advertisement_to_properties", function ($join) use ($newKey, $value) {
$join->on("advertisements.id", "=", "advertisement_to_properties.advertisement")
->where("advertisement_to_properties.feature", '=', $newKey)
->where("advertisement_to_properties.variable", '=', $value);
});
$query->join("advertisement_to_properties", function ($join) use ($newKey, $value) {
$join->on("advertisements.id", "=", "advertisement_to_properties.advertisement")
->where("advertisement_to_properties.feature", '=', $newKey2)
->where("advertisement_to_properties.variable", '>=', $value2)
->where("advertisement_to_properties.variable", '<=', \request('max' . $newKey));
});
$advertisements = $query->get();```
Böyle bir sorgu yapmaya çalıştığım zaman https://prnt.sc/139r6f4 böyle bir hata çıkıyor karşıma.