Laravel DB Inserr
DB::table('users')->insert([
'email' => '[email protected]',
'votes' => 0
]);
Helpful Hoopoe
DB::table('users')->insert([
'email' => '[email protected]',
'votes' => 0
]);
$id = DB::table('users')->insertGetId(
['email' => '[email protected]', 'votes' => 0]
);
DB::select('SELECT * FROM users WHERE name = ?', array(Input::get('name')));
DB::table('users')->insert([
['email' => '[email protected]', 'votes' => 0],
['email' => '[email protected]', 'votes' => 0],
]);