loafer / laravel-bulk-package
A package for laravel that allows bulk data insertion
Installs: 20
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/loafer/laravel-bulk-package
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