Laravel DB INSERR
DB::table('users')->insert([
'email' => 'kayla@example.com',
'votes' => 0
]);
Helpful Hoopoe
DB::table('users')->insert([
'email' => 'kayla@example.com',
'votes' => 0
]);
$id = DB::table('users')->insertGetId(
['email' => 'john@example.com', 'votes' => 0]
);
DB::select('SELECT * FROM users WHERE name = ?', array(Input::get('name')));
DB::table('users')->insert([
['email' => 'picard@example.com', 'votes' => 0],
['email' => 'janeway@example.com', 'votes' => 0],
]);