1$data = [
2 ['name' => 'John', 'age' => 25],
3 ['name' => 'Maria', 'age' => 31],
4 ['name' => 'Julia', 'age' => 55],
5];
6DB::table('table_name')->insert($data);
1$data = array(
2 array('name'=>'Coder 1', 'rep'=>'4096'),
3 array('name'=>'Coder 2', 'rep'=>'2048'),
4 //...
5);
6
7Coder::insert($data);
8
1$data = array(
2 array('name'=>'Coder 1', 'rep'=>'4096'),
3 array('name'=>'Coder 2', 'rep'=>'2048'),
4 //...
5);
6
7Coder::insert($data);