PHPackages                             canedoc/laravel-bulk-update - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. canedoc/laravel-bulk-update

ActiveLibrary[Database &amp; ORM](/categories/database)

canedoc/laravel-bulk-update
===========================

110.4k↓47.6%PHP

Since Jun 25Pushed 2y ago1 watchersCompare

[ Source](https://github.com/canedoc/laravel-bulk-update)[ Packagist](https://packagist.org/packages/canedoc/laravel-bulk-update)[ RSS](/packages/canedoc-laravel-bulk-update/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel conditionnal bulk update
================================

[](#laravel-conditionnal-bulk-update)

This pachake add multi row update to Laravel Query Builder. It supports Laravel &gt;= 9.

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require canedoc/laravel-bulk-update
```

Usage
-----

[](#usage)

allow multi row update in one query.

In this example all rows in animes table that have : 1- email = '' and name = 'naruto' the age will be set to 33. 2- 'name' = 'sasuki' the email will be set to '' 3- all rows will set is\_alive to true

```
$data = [
    'age' => [
        ['email' => 'naruto@best.com', 'name' => 'naruto', 'age' => 33],
    ],
    'email' => ['email' => 'sasuki@best.com', 'name' => 'sasuki'],
    'is_alive' => true
]

\DB::table('animes')->where('is_active', true)->bulkUpdate($data);

Animes::where('is_active', true)->bulkUpdate($data);
```

Testing
-------

[](#testing)

```
composer test
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [BOUBRIT Nacim](https://github.com/canedoc)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity22

Early-stage or recently created project

 Bus Factor1

Top contributor holds 93.8% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/b57846cb451ef9c1977482bb67a722544e8ead0fa69ad8182b1658664fc54262?d=identicon)[canedoc](/maintainers/canedoc)

---

Top Contributors

[![canedoc](https://avatars.githubusercontent.com/u/32875605?v=4)](https://github.com/canedoc "canedoc (30 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (1 commits)")

### Embed Badge

![Health badge](/badges/canedoc-laravel-bulk-update/health.svg)

```
[![Health](https://phpackages.com/badges/canedoc-laravel-bulk-update/health.svg)](https://phpackages.com/packages/canedoc-laravel-bulk-update)
```

###  Alternatives

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k285.3M6.2k](/packages/doctrine-orm)[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k115.1M102](/packages/jdorn-sql-formatter)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.4k](/packages/illuminate-database)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

90440.3M211](/packages/ramsey-uuid-doctrine)[reliese/laravel

Reliese Components for Laravel Framework code generation.

1.7k3.4M16](/packages/reliese-laravel)[wildside/userstamps

Laravel Userstamps provides an Eloquent trait which automatically maintains `created\_by` and `updated\_by` columns on your model, populated by the currently authenticated user in your application.

7511.7M13](/packages/wildside-userstamps)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
