artisan select from db code example Example: wherein laravel DB::table('user')->whereIn('id', [100,200])->get();