Download the PHP package free3_5man/laravel-eloquent-batch without Composer
On this page you can find all versions of the php package free3_5man/laravel-eloquent-batch. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download free3_5man/laravel-eloquent-batch
More information about free3_5man/laravel-eloquent-batch
Files in free3_5man/laravel-eloquent-batch
Download free3_5man/laravel-eloquent-batch
More information about free3_5man/laravel-eloquent-batch
Files in free3_5man/laravel-eloquent-batch
Vendor free3_5man
Package laravel-eloquent-batch
Short Description a common-used batch util is provided for batch insert/update in multiple databases, also with laravel eloquent based batch action
License MIT
Package laravel-eloquent-batch
Short Description a common-used batch util is provided for batch insert/update in multiple databases, also with laravel eloquent based batch action
License MIT
Please rate this library. Is it a good library?
Informations about the package laravel-eloquent-batch
Laravel Eloquent BATCH
provide an util for batch Insert/update, also an eloquent collection macro batchSave for batch action more convenient in Laravel.
Install
composer require free3_5man/laravel-eloquent-batch
Service Provider
file app.php in array providers :
Freeman\LaravelBatch\BatchServiceProvider::class,
Features
- make the insert data items assoc with keys, which has the same data structure with update data
- return insert ids when primary key is integer auto_increment
- MySQL, PostgreSQL, SQLite and SQL Server is supported
- json/jsonb field is supported
- auto chunked when generate batch sql
- support Eloqunent Collection macro batchSave for auto batchInsert and batchUpdate
- batchSave fill items with insert id when actually insert and primary key is integer auto_increment
- batchSave return updated models when actually update
- batchSave can save inserts and updates at the same time
- batchSave can control whether to touch updated_at with the param $touchUpdatedAt
Batch Insert Example
Batch Update Example
batchSave Example
Testing
All versions of laravel-eloquent-batch with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.1
ext-json Version *
ext-json Version *
The package free3_5man/laravel-eloquent-batch contains the following files
Loading the files please wait ....