📜  whereJsonContains laravel - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:24.233000             🧑  作者: Mango

代码示例1
The data types have to match:

// [1, 2]
->whereJsonContains('players', 1)   // Works.
->whereJsonContains('players', '1') // Doesn't work.

// ["1", "2"]
->whereJsonContains('players', '1') // Works.
->whereJsonContains('players', 1)   // Doesn't work.