1/*
2It is really easy to do a bulk insert in Laravel with or without the query builder.
3You can use the following official approach.
4*/
5
6
7Entity::upsert([
8 ['name' => 'Pierre Yem Mback', 'city' => 'Eseka', 'salary' => 10000000],
9 ['name' => 'Dial rock 360', 'city' => 'Yaounde', 'salary' => 20000000],
10 ['name' => 'Ndibou La Menace', 'city' => 'Dakar', 'salary' => 40000000]
11], ['name', 'city'], ['salary']);