1DB::table('users')->insert([
2 'email' => 'kayla@example.com',
3 'votes' => 0
4]);
1$id = DB::table('users')->insertGetId(
2 ['email' => 'john@example.com', 'votes' => 0]
3);
1DB::select('SELECT * FROM users WHERE name = ?', array(Input::get('name')));
2
1DB::table('users')->insert([
2 ['email' => 'picard@example.com', 'votes' => 0],
3 ['email' => 'janeway@example.com', 'votes' => 0],
4]);
1DB::table('users')->insertOrIgnore([
2 ['id' => 1, 'email' => 'sisko@example.com'],
3 ['id' => 2, 'email' => 'archer@example.com'],
4]);