where in json laravel 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();
Example 3: laravel json eloquent
protected $casts = [
'birthday' => 'date:Y-m-d',
'joined_at' => 'datetime:Y-m-d H:00',
];