Answers for "Laravel JSON Where Query"

0

laravel query json

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

Laravel JSON Where Query

$users = DB::table('users')
                ->where('options->language', 'en')
                ->get();

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

Code answers related to "Javascript"

Browse Popular Code Answers by Language