Answers for "Laravel JSON query"

PHP
0

laravel query json

$users = DB::table('users')
                ->whereJsonContains('options->languages', ['en', 'de'])
                ->get();
Posted by: Guest on May-20-2020
0

Laravel JSON query

$users = DB::table('users')
                ->where('preferences->dining->meal', 'salad')
                ->get();
Posted by: Guest on August-21-2021

Browse Popular Code Answers by Language