Answers for "whereJsonContains laravel"

PHP
0

whereJsonContains laravel

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.
Posted by: Guest on August-01-2020

Browse Popular Code Answers by Language