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