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 3y 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 2w ago

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 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity66

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

2059d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/15922667?v=4)[Thomas Spencer](/maintainers/tspencer244)[@tspencer244](https://github.com/tspencer244)

![](https://avatars.githubusercontent.com/u/6128798?v=4)[Jarryd Tilbrook](/maintainers/jradtilbrook)[@jradtilbrook](https://github.com/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

[kirschbaum-development/eloquent-power-joins

The Laravel magic applied to joins.

1.6k29.9M42](/packages/kirschbaum-development-eloquent-power-joins)[mongodb/laravel-mongodb

A MongoDB based Eloquent model and Query builder for Laravel

7.1k8.0M90](/packages/mongodb-laravel-mongodb)[spatie/laravel-sluggable

Generate slugs when saving Eloquent models

1.5k12.4M294](/packages/spatie-laravel-sluggable)[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[watson/validating

Eloquent model validating trait.

9733.4M53](/packages/watson-validating)[yajra/laravel-oci8

Oracle DB driver for Laravel via OCI8

8723.1M23](/packages/yajra-laravel-oci8)

PHPackages © 2026

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