PHPackages                             kduma/eloquent-uuidable - 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. kduma/eloquent-uuidable

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

kduma/eloquent-uuidable
=======================

Eloquent Uuidable Trait

v3.0.0(1mo ago)04902MITPHPPHP ^8.3

Since Nov 19Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/kduma-OSS/LV-eloquent-uuidable)[ Packagist](https://packagist.org/packages/kduma/eloquent-uuidable)[ RSS](/packages/kduma-eloquent-uuidable/feed)WikiDiscussions master Synced yesterday

READMEChangelog (3)Dependencies (3)Versions (4)Used By (0)

Eloquent UUID-able
==================

[](#eloquent-uuid-able)

[![Latest Stable Version](https://camo.githubusercontent.com/5cecfdc492fa2e50446486547ba9cbb7950f2b1f605328533290daa6453fb553/68747470733a2f2f706f7365722e707567782e6f72672f6b64756d612f656c6f7175656e742d7575696461626c652f762f737461626c652e737667)](https://packagist.org/packages/kduma/eloquent-uuidable)[![Total Downloads](https://camo.githubusercontent.com/bb6245ff82f9c8ac003de61f49e330b52e1ba150724899f6a590c5ea7969078c/68747470733a2f2f706f7365722e707567782e6f72672f6b64756d612f656c6f7175656e742d7575696461626c652f646f776e6c6f6164732e737667)](https://packagist.org/packages/kduma/eloquent-uuidable)[![License](https://camo.githubusercontent.com/96d08478ecee1156a9340cf4bb9d3ba1d83f678c7e884bd6de9e6bae59971ebb/68747470733a2f2f706f7365722e707567782e6f72672f6b64756d612f656c6f7175656e742d7575696461626c652f6c6963656e73652e737667)](https://packagist.org/packages/kduma/eloquent-uuidable)

Eloquent trait that adds a UUID as an additional column alongside the numeric `id` in Laravel models.

Full documentation: [opensource.duma.sh/libraries/php/eloquent-uuidable](https://opensource.duma.sh/libraries/php/eloquent-uuidable)

Requirements
------------

[](#requirements)

- PHP `^8.3`
- Laravel `^13.0`

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

[](#installation)

```
composer require kduma/eloquent-uuidable
```

Usage
-----

[](#usage)

```
use KDuma\Eloquent\Uuidable;
use KDuma\Eloquent\Attributes\HasUuid;

#[HasUuid(field: 'uuid')]
class User extends Model
{
    use Uuidable;
}
```

Add a `uuid` column to your migration:

```
$table->uuid('uuid')->unique();
```

UUID is auto-generated on create. Find by UUID with `User::whereUuid($uuid)` or `User::byUuid($uuid)`.

> Unlike Laravel's built-in `HasUuids`, this package keeps the numeric `id` as the primary key and stores the UUID in a separate column.

###  Health Score

53

—

FairBetter than 97% of packages

Maintenance93

Actively maintained with recent releases

Popularity15

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity78

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~1348 days

Total

3

Last Release

34d ago

Major Versions

v1.0.1 → v3.0.02026-04-08

PHP version history (2 changes)v1.0PHP &gt;=5.4.0

v3.0.0PHP ^8.3

### Community

Maintainers

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

---

Top Contributors

[![kduma](https://avatars.githubusercontent.com/u/1062582?v=4)](https://github.com/kduma "kduma (33 commits)")

---

Tags

laravelphplaraveleloquentuuidguid

### Embed Badge

![Health badge](/badges/kduma-eloquent-uuidable/health.svg)

```
[![Health](https://phpackages.com/badges/kduma-eloquent-uuidable/health.svg)](https://phpackages.com/packages/kduma-eloquent-uuidable)
```

###  Alternatives

[dyrynda/laravel-model-uuid

This package allows you to easily work with UUIDs in your Laravel models.

4802.8M8](/packages/dyrynda-laravel-model-uuid)[watson/validating

Eloquent model validating trait.

9723.3M47](/packages/watson-validating)[cybercog/laravel-love

Make Laravel Eloquent models reactable with any type of emotions in a minutes!

1.2k302.7k1](/packages/cybercog-laravel-love)[cviebrock/eloquent-taggable

Easy ability to tag your Eloquent models in Laravel.

567694.8k3](/packages/cviebrock-eloquent-taggable)[reedware/laravel-relation-joins

Adds the ability to join on a relationship by name.

2121.2M13](/packages/reedware-laravel-relation-joins)[toponepercent/baum

Baum is an implementation of the Nested Set pattern for Eloquent models.

3154.7k](/packages/toponepercent-baum)

PHPackages © 2026

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