use db select * from users laravel code example
Example 1: DB::table('users')->get();
DB::table('users')->where('name', Input::get('name'))->get();
Example 2: db name laravel
DB::connection()->getDatabaseName() //laravel
DB::table('users')->where('name', Input::get('name'))->get();
DB::connection()->getDatabaseName() //laravel