一栏有效
whereJsonContains('VehicleApplications'
,['ModelName' => $model, 'YearID' => $year] )->paginate(10);
答案 0 :(得分:0)
如果有人知道更干净的查询,请确保定义变量类型
$make = (string) $make;
$model = (string) $model;
$year = (int) $year;
$category = (int) $category;
whereJsonContains('VehicleApplications',
['ModelName' => $model, 'YearID' => $year]
)->
whereJsonContains('pcItems',
['pcCategoryID' => $category]
)->paginate(10);