Answers for "laravel query builder where array"

PHP
7

laravel wher in

$users = DB::table('users')
                    ->whereIn('id', [1, 2, 3])
                    ->get();
Posted by: Guest on April-30-2020
1

laravel query builder get data as array of array

$array = get_object_vars($result);
Posted by: Guest on March-15-2021
1

laravel query builder get data as array of array

$array = json_decode(json_encode($result), true);
Posted by: Guest on March-15-2021

Code answers related to "laravel query builder where array"

Browse Popular Code Answers by Language