loafer/laravel-bulk-package

This package is abandoned and no longer maintained. No replacement package was suggested.

A package for laravel that allows bulk data insertion

dev-master 2020-07-04 08:58 UTC

This package is auto-updated.

Last update: 2022-08-04 13:48:14 UTC


README

A package for laravel that allows bulk data insertion

for example, when you have such data:

$categories = collect([
    ['name' => 'Category 1'],
    ['name' => 'Category 2'],
    ['name' => 'Category 3'],
]);

you just write:

Bulk::insert('categories', 'name', $categories);

and you will get:

  • check data for existing records
  • inserts data in one query
  • returns the rows of created records