laravel db table insert code example
Example 1: laravel insert
DB::table('users')->insert([
'email' => '[email protected]',
'votes' => 0
]);
Example 2: DB::table('users')->get();
DB::table('users')->where('name', Input::get('name'))->get();