通过比较“gos.id”和“service\u gos.gos\u id”,我只想返回那些没有在“service\u gos”表中注册的“gos”
iq3niunx1#
使用 $results = Gos::whereDoesntHave("service_gos")->get();
$results = Gos::whereDoesntHave("service_gos")->get();
1条答案
按热度按时间iq3niunx1#
使用
$results = Gos::whereDoesntHave("service_gos")->get();