laravel框架where查詢json格式的數(shù)據(jù)
2 回答

BIG陽
TA貢獻(xiàn)1859條經(jīng)驗(yàn) 獲得超6個(gè)贊
public function store(Request $request)
{
$this->validate($request, [
'title' => 'required|unique:posts|max:255',
'body' => 'required',
]);
// The blog post is valid, store in database...
}

弒天下
TA貢獻(xiàn)1818條經(jīng)驗(yàn) 獲得超8個(gè)贊
$query->whereRaw("JSON_CONTAINS(group_id,'[\"$id\"]')")->get();
- 2 回答
- 0 關(guān)注
- 2099 瀏覽
添加回答
舉報(bào)
0/150
提交
取消