DB::table('users')->get(); code example
Example 1: DB::table('users')->get();
$users = DB::table('users')->get();
Example 2: DB::table('users')->get();
DB::select('SELECT * FROM users WHERE name = ?', array(Input::get('name')));
Example 3: DB::table('users')->get();
$product = DB::table('product')->get(['id','product_name']);
Example 4: DB::table('users')->get();
DB::select('SELECT * FROM users WHERE name = "'.Input::get('name').'"');
Example 5: DB::table('users')->get();
DB::table('users')->where('name', Input::get('name'))->get();
Example 6: DB::table('users')->get();
DB::select('select * from users ');