PHPackages                             beitsafe/laravel-uuid-auditing - 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. beitsafe/laravel-uuid-auditing

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

beitsafe/laravel-uuid-auditing
==============================

This package adds Traits for generating UUIDs and filling audit columns on Models, extends fico7489/laravel-pivot to add UUIDs to Pivot Tables

v2.0.1(2y ago)212.1k↓100%MITPHP

Since Apr 29Pushed 2y ago2 watchersCompare

[ Source](https://github.com/beitsafe/laravel-uuid-auditing)[ Packagist](https://packagist.org/packages/beitsafe/laravel-uuid-auditing)[ Docs](https://github.com/beitsafe/laravel-uuid-auditing)[ RSS](/packages/beitsafe-laravel-uuid-auditing/feed)WikiDiscussions master Synced today

READMEChangelog (5)Dependencies (2)Versions (8)Used By (0)

Laravel UUID Auditing
=====================

[](#laravel-uuid-auditing)

This package adds Traits for generating UUIDs and filling audit columns on Models, extends fico7489/laravel-pivot to add UUIDs to Pivot Tables

Based On
--------

[](#based-on)

This package is based on  and using webpatser/laravel-uuid

Install
-------

[](#install)

1.Install package with composer

```
composer require beitsafe/laravel-uuid-auditing:"@dev"

```

Configure Automatically
-----------------------

[](#configure-automatically)

1. Use BeITSafe\\Laravel\\Models\\BeITSafeModel trait in your base model or only in particular models. This will automatically generate UUIDs for BOTH Models and Pivot Tables.

```
...
use BeITSafe\Laravel\Models\BeITSafeModel;

class SomeModel extends BeITSafeModel
{
...

```

Configure UUIDs Manually
------------------------

[](#configure-uuids-manually)

1.Use BeITSafe\\Laravel\\Traits\\Uuids trait in your base model or only in particular models. This will automatically generate UUIDs for BOTH Models and Pivot Tables.

```
...
use BeITSafe\Laravel\Traits\Uuids;
use Illuminate\Database\Eloquent\Model;

abstract class BaseModel extends Model
{
    use Uuids;
...

```

Configure Auditing Manually
---------------------------

[](#configure-auditing-manually)

1.Use BeITSafe\\Laravel\\Traits\\Auditing trait in your base model or only in particular models. This will automatically save the Auth::user()-&gt;id to 'created\_by', 'updated\_by', 'deleted\_by' if there is a logged in User and the column exists in the Model.

```
...
use BeITSafe\Laravel\Traits\Auditing;
use Illuminate\Database\Eloquent\Model;

abstract class BaseModel extends Model
{
    use Auditing;
...

```

New eloquent events
-------------------

[](#new-eloquent-events)

New events are :

```
pivotAttaching, pivotAttached
pivotDetaching, pivotDetached,
pivotUpdating, pivotUpdated

```

License
-------

[](#license)

MIT

###  Health Score

34

—

LowBetter than 79% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 60% 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.

###  Release Activity

Cadence

Every ~243 days

Recently: every ~3 days

Total

7

Last Release

1063d ago

Major Versions

v1.0.2 → v2.0.02023-04-24

### Community

Maintainers

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

---

Top Contributors

[![beitsafedaniel](https://avatars.githubusercontent.com/u/7887286?v=4)](https://github.com/beitsafedaniel "beitsafedaniel (9 commits)")[![arivazhaganark](https://avatars.githubusercontent.com/u/10572131?v=4)](https://github.com/arivazhaganark "arivazhaganark (4 commits)")[![JaxTerra](https://avatars.githubusercontent.com/u/22583404?v=4)](https://github.com/JaxTerra "JaxTerra (1 commits)")[![prakasharulmani123](https://avatars.githubusercontent.com/u/9291644?v=4)](https://github.com/prakasharulmani123 "prakasharulmani123 (1 commits)")

---

Tags

laravel pivot eventslaravel BelongsToMany eventseloquent extra eventslaravel sync eventseloquent eventslaravel pivot UUIDS

### Embed Badge

![Health badge](/badges/beitsafe-laravel-uuid-auditing/health.svg)

```
[![Health](https://phpackages.com/badges/beitsafe-laravel-uuid-auditing/health.svg)](https://phpackages.com/packages/beitsafe-laravel-uuid-auditing)
```

###  Alternatives

[fico7489/laravel-pivot

This package introduces new eloquent events for sync(), attach(), detach() or updateExistingPivot() methods on BelongsToMany relation.

5235.9M20](/packages/fico7489-laravel-pivot)[genealabs/laravel-pivot-events

This package introduces new eloquent events for sync(), attach(), detach() or updateExistingPivot() methods on BelongsToMany relation.

1404.9M8](/packages/genealabs-laravel-pivot-events)[mikebronner/laravel-pivot-events

This package introduces new eloquent events for sync(), attach(), detach() or updateExistingPivot() methods on BelongsToMany relation.

140378.5k3](/packages/mikebronner-laravel-pivot-events)[rtconner/laravel-likeable

Trait for Laravel Eloquent models to allow easy implementation of a 'like' or 'favorite' or 'remember' feature.

402385.8k5](/packages/rtconner-laravel-likeable)[highsolutions/eloquent-sequence

A Laravel package for easy creation and management sequence support for Eloquent models with elastic configuration.

121128.4k](/packages/highsolutions-eloquent-sequence)[kkszymanowski/laravel-6-firebird

A Firebird database package for Laravel 6

3019.7k](/packages/kkszymanowski-laravel-6-firebird)

PHPackages © 2026

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