eloquent query json field code example
Example 1: laravel query json
$users = DB::table('users')
->whereJsonContains('options->languages', ['en', 'de'])
->get();
Example 2: json whereIn laravel
$users->whereJsonContains("column->key", [1, 2, 3])->get();