PHPackages                             genesis-tecnologia/laravel-eloquent-extra-events - 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. genesis-tecnologia/laravel-eloquent-extra-events

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

genesis-tecnologia/laravel-eloquent-extra-events
================================================

Eventos adicionais para o eloquent

0826↓50%PHP

Since Feb 10Pushed 3y agoCompare

[ Source](https://github.com/Genesis-Tecnologia/laravel-eloquent-extra-events)[ Packagist](https://packagist.org/packages/genesis-tecnologia/laravel-eloquent-extra-events)[ RSS](/packages/genesis-tecnologia-laravel-eloquent-extra-events/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

eloquent-extra-events
=====================

[](#eloquent-extra-events)

[![Total Downloads](https://camo.githubusercontent.com/5bd31cf264b615111ff4d9af8d246b67d3cc6cdfd201f0ace21e2becb99b5b39/68747470733a2f2f706f7365722e707567782e6f72672f67656e657369737465636e6f6c6f6769612f656c6f7175656e742d65787472612d6576656e74732f646f776e6c6f616473)](https://packagist.org/packages/genesistecnologia/eloquent-extra-events)[![Monthly Downloads](https://camo.githubusercontent.com/0f1d39d5768c1aabe83658b935fc77095af9aae76717f2479ba50f6a6756ed40/68747470733a2f2f706f7365722e707567782e6f72672f67656e657369737465636e6f6c6f6769612f656c6f7175656e742d65787472612d6576656e74732f642f6d6f6e74686c79)](https://packagist.org/packages/genesistecnologia/eloquent-extra-events)[![Daily Downloads](https://camo.githubusercontent.com/8715bed516a395ac91cea7b1d1f590e724f5396f798eb3877d686193ef7b2db7/68747470733a2f2f706f7365722e707567782e6f72672f67656e657369737465636e6f6c6f6769612f656c6f7175656e742d65787472612d6576656e74732f642f6461696c79)](https://packagist.org/packages/genesistecnologia/eloquent-extra-events)[![Latest Stable Version](https://camo.githubusercontent.com/a9f3ca8790651a94de94b9f2753bd7e10cd852fea69685662ce2ad44faf905bb/68747470733a2f2f706f7365722e707567782e6f72672f67656e657369737465636e6f6c6f6769612f656c6f7175656e742d65787472612d6576656e74732f762f737461626c65)](https://packagist.org/packages/genesistecnologia/eloquent-extra-events)[![Latest Unstable Version](https://camo.githubusercontent.com/cf6b2d19a411ba08dd68caec9f9f667886888e86139e95d99e74cf67d86c2891/68747470733a2f2f706f7365722e707567782e6f72672f67656e657369737465636e6f6c6f6769612f656c6f7175656e742d65787472612d6576656e74732f762f756e737461626c65)](https://packagist.org/packages/genesistecnologia/eloquent-extra-events)[![License](https://camo.githubusercontent.com/7cd0b97ad8ad22f4e1c20e642fa357c65c8b18595678276d6e28a95726c1960d/68747470733a2f2f706f7365722e707567782e6f72672f67656e657369737465636e6f6c6f6769612f656c6f7175656e742d65787472612d6576656e74732f6c6963656e7365)](https://packagist.org/packages/genesistecnologia/eloquent-extra-events)

Install:

```
For 5.2.x, 5.3.x and 5.4.x:
composer require genesistecnologia/eloquent-extra-events:0.3.5

```

```
For 5.5.x:
composer require genesistecnologia/eloquent-extra-events

```

In your model:

`use GenesisTecnologia\LaravelEloquentExtraEvents\ExtraEventsTrait;`

Events:

- eloquent.syncing
- eloquent.synced
- eloquent.attaching
- eloquent.attached
- eloquent.detaching
- eloquent.detached

Listen events in `App\Providers\AppServiceProvider`:

```
In 5.2.x and 5.3.x:
Event::listen('eloquent.syncing*', function (array $eventData) {
});

In 5.4.x and 5.5.x:
Event::listen('eloquent.syncing*', function ($eventName, array $eventData) {
});

```

Available properties:

- `$eventData['parent_model']`: `string` e.g. `'App\Models\Model'`
- `$eventData['parent_id']`: `integer` e.g. `42`
- `$eventData['related_model']`: `string` e.g. `'App\Models\Model'`
- (except eloquent.synced) `$eventData['related_ids']`: `array` e.g. `[31,41]`
- (Only eloquent.detached) `$eventData['results']`: `integer` e.g. `2`
- (Only eloquent.synced) `$eventData['changes']`: `array` with the following keys:
    - `'attached'`: `array` e.g. `[1, 8]`
    - `'detached'`: `array` e.g. `[15, 16]`
    - `'updated'`: `array` e.g. `[23]`

Note: sync trigger attach and detach.

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity23

Early-stage or recently created project

 Bus Factor1

Top contributor holds 66.7% 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/81be7ba02ff698588f7a05032ab14882cf8a23cf9b86dabfac9efaad90975015?d=identicon)[genesis-tec-ino](/maintainers/genesis-tec-ino)

---

Top Contributors

[![jeanrsantos](https://avatars.githubusercontent.com/u/59286569?v=4)](https://github.com/jeanrsantos "jeanrsantos (2 commits)")[![alexislefebvre](https://avatars.githubusercontent.com/u/2071331?v=4)](https://github.com/alexislefebvre "alexislefebvre (1 commits)")

### Embed Badge

![Health badge](/badges/genesis-tecnologia-laravel-eloquent-extra-events/health.svg)

```
[![Health](https://phpackages.com/badges/genesis-tecnologia-laravel-eloquent-extra-events/health.svg)](https://phpackages.com/packages/genesis-tecnologia-laravel-eloquent-extra-events)
```

###  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)[mongodb/mongodb

MongoDB driver library

1.6k64.0M546](/packages/mongodb-mongodb)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

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

Reliese Components for Laravel Framework code generation.

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

PHPackages © 2026

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