🌈 搜索
📅  最后修改于: 2022-03-11 14:54:30.180000             🧑  作者: Mango
$counties = County::whereHas('items', function ($query) { $query->where('approved', 1); })->orderBy('name')->get();