search JSON datatype value in laravel

前端 未结 0 1400
攒了一身酷
攒了一身酷 2021-02-19 15:32

i have tried this to get records matching value 1 in products_applicable column

Coupon::whereJsonContains(\'products_applicable\',[\'1\'])->get();
相关标签:
回答
  • 消灭零回复
提交回复
热议问题