This commit is contained in:
2025-06-10 17:19:58 +08:00
parent 3da8166a9d
commit bf37e1f276
+3 -1
View File
@@ -15,7 +15,9 @@ class LocationController
public function index(Request $request)
{
$locations = Location::with('vehicles')
->with('fboVehicles')
->with(['fboVehicles' => function($query) {
$query->where([['status','!=', 4]]); // 对关联表 posts 加条件
}])
->whereIn('type',['port','warehouse'])
->get()
->map(function ($location) {