Looking to hire Laravel developers? Try LaraJobs

laravel-eloquent-bulk maintained by cwola

Description
A simple drop-in solution for providing bulk-insert for the Eloquent models.
Author
r-jimbo
Last update
2022/07/10 06:44 (dev-main)
License
Downloads
6
Tags

Comments
comments powered by Disqus

laravel-eloquent-bulk

Providing bulk-insert for the Eloquent models(Cwola library).

Overview

A simple drop-in solution for providing bulk-insert for the Eloquent models.

Requirement

  • PHP8.0+

Installation

composer require cwola/laravel-eloquent-bulk

Usage

<?php

use Illuminate\Support\Collection;
use Cwola\LaravelEloquentBulk\Bulk;

$models = Collection::make([
    ...eloquent-models
]);

Bulk::insert($models);

Licence

MIT