laravel new query code example
Example 1: wherein laravel
DB::table('user')->whereIn('id', [100,200])->get();
Example 2: laravel db inserr
$id = DB::table('users')->insertGetId(
['email' => '[email protected]', 'votes' => 0]
);
DB::table('user')->whereIn('id', [100,200])->get();
$id = DB::table('users')->insertGetId(
['email' => '[email protected]', 'votes' => 0]
);