db laravel where code example
Example 1: wherein laravel
DB::table('user')->whereIn('id', [100,200])->get();
Example 2: db name laravel
DB::connection()->getDatabaseName() //laravel
DB::table('user')->whereIn('id', [100,200])->get();
DB::connection()->getDatabaseName() //laravel