$from = Db::table('json_from');
foreach ($ret as $key => $value) {
if(!empty($all[$value["name"]])){
//$where[] = [$value["name"], 'like', "%".$all[$value["name"]]."%"];
$from->whereRaw("content -> '$.".$value["name"]."' LIKE '%".$all[$value["name"]]."%'");
}
}