标签: mysql database laravel
通过比较“ gos.id”和“ service_gos.gos_id”,我只想返回未在“ service_gos”表中注册的那些“ gos”
答案 0 :(得分:0)
使用$results = Gos::whereDoesntHave("service_gos")->get();
$results = Gos::whereDoesntHave("service_gos")->get();