Answers for "laravel select where in array"

PHP
7

laravel wher in

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

DB::table('users')->get();

DB::select('SELECT * FROM users WHERE name = "'.Input::get('name').'"');
Posted by: Guest on October-22-2020

Browse Popular Code Answers by Language