laravel query builder select database code example
Example 1: DB::table('users')->get();
DB::select('SELECT * FROM users WHERE name = ?', array(Input::get('name')));
Example 2: laravel query builder select first
$user = DB::table('users')->where('name', 'John')->first();
var_dump($user->name);