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

Abandoned → [laravel/framework](/?search=laravel%2Fframework)ArchivedLibrary[Database &amp; ORM](/categories/database)

healthengine/laravel-uuid
=========================

Use UUIDs as primary keys for Eloquent models

1.3.0(5y ago)126.4k11MITPHP

Since Jan 10Pushed 2y ago2 watchersCompare

[ Source](https://github.com/HealthEngineAU/laravel-uuid)[ Packagist](https://packagist.org/packages/healthengine/laravel-uuid)[ RSS](/packages/healthengine-laravel-uuid/feed)WikiDiscussions master Synced yesterday

READMEChangelog (2)Dependencies (4)Versions (8)Used By (1)

> **Warning**
>
> This repository is archived.
>
> Use [laravel/framework](https://github.com/laravel/framework) instead.

Laravel UUID
============

[](#laravel-uuid)

[![Latest Stable Version](https://camo.githubusercontent.com/cf754dbe987233de294abd53e6de971989f5482a4075344aae12b920543073b7/68747470733a2f2f706f7365722e707567782e6f72672f6865616c7468656e67696e652f6c61726176656c2d757569642f76657273696f6e)](https://packagist.org/packages/healthengine/laravel-uuid)[![Total Downloads](https://camo.githubusercontent.com/5471fac7d0f08b16ee9373718e8e0254af55d6950c2d1632b64168b8a9619efb/68747470733a2f2f706f7365722e707567782e6f72672f6865616c7468656e67696e652f6c61726176656c2d757569642f646f776e6c6f616473)](https://packagist.org/packages/healthengine/laravel-uuid)[![Build Status](https://camo.githubusercontent.com/04e8891e0f6f7240e69986020be4487eb8878461d25aaf2cd9ae9589a98234a8/68747470733a2f2f7472617669732d63692e636f6d2f4865616c7468456e67696e6541552f6c61726176656c2d757569642e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/HealthEngineAU/laravel-uuid)

This is a custom package designed for Laravel Eloquent. It provides a trait that can be used in model classes that will automatically generate a UUID primary key instead of the default auto-incrementing integer.

Usage
-----

[](#usage)

All that is necessary to have this working is to `use` the trait in the model class. An example is shown below.
Don't forget that the migration will need to be changed to create a UUID (or string) column instead of an integer column. You'll also need to explicitly set the column as the primary key.

```
use HealthEngine\LaravelUuid\UuidPrimaryKey;
use Illuminate\Database\Eloquent\Model;

class Post extends Model
{
    use UuidPrimaryKey;

    //
}
```

License
-------

[](#license)

Laravel UUID is licensed under the MIT license.

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 62.5% 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 ~223 days

Total

4

Last Release

2010d ago

### Community

Maintainers

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

![](https://www.gravatar.com/avatar/0caec84933c461475313072790637b89e905b604ce657718e41116fbd7640368?d=identicon)[jradtilbrook](/maintainers/jradtilbrook)

---

Top Contributors

[![dependabot-preview[bot]](https://avatars.githubusercontent.com/in/2141?v=4)](https://github.com/dependabot-preview[bot] "dependabot-preview[bot] (5 commits)")[![nathanblogs](https://avatars.githubusercontent.com/u/414153?v=4)](https://github.com/nathanblogs "nathanblogs (1 commits)")[![SaxJ](https://avatars.githubusercontent.com/u/1689439?v=4)](https://github.com/SaxJ "SaxJ (1 commits)")[![tspencer244](https://avatars.githubusercontent.com/u/15922667?v=4)](https://github.com/tspencer244 "tspencer244 (1 commits)")

---

Tags

eloquentlaraveluuidlaraveleloquentuuid

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  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)[tucker-eric/eloquentfilter

An Eloquent way to filter Eloquent Models

1.8k4.8M26](/packages/tucker-eric-eloquentfilter)[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)

PHPackages © 2026

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