Looking to hire Laravel developers? Try LaraJobs

laravel-bulk-package maintained by loafer

Description
A package for laravel that allows bulk data insertion
Author
Last update
2020/07/04 10:58 (dev-master)
License
Links
Downloads
20

Comments
comments powered by Disqus

Laravel Bulk Package

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