wherejsoncontains laravel

Solutions on MaxInterview for wherejsoncontains laravel by the best coders in the world

showing results for - "wherejsoncontains laravel"
Giada
24 Jan 2016
1The data types have to match:
2
3// [1, 2]
4->whereJsonContains('players', 1)   // Works.
5->whereJsonContains('players', '1') // Doesn't work.
6
7// ["1", "2"]
8->whereJsonContains('players', '1') // Works.
9->whereJsonContains('players', 1)   // Doesn't work.