DB where laravel code example
Example 1: DB::table('users')->get();
DB::select('SELECT * FROM users WHERE name = "'.Input::get('name').'"');
Example 2: db name laravel
DB::connection()->getDatabaseName() //laravel
DB::select('SELECT * FROM users WHERE name = "'.Input::get('name').'"');
DB::connection()->getDatabaseName() //laravel