input data into database using query in laravel 8 code example
Example 1: laravel db inserr
DB::table('users')->insert([
'email' => '[email protected]',
'votes' => 0
]);
Example 2: laravel db inserr
DB::table('users')->insert([
['email' => '[email protected]', 'votes' => 0],
['email' => '[email protected]', 'votes' => 0],
]);