PHPackages                             haymetg/luuid - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. haymetg/luuid

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

haymetg/luuid
=============

A Laravel package for making UUID primary key

1.0.1(6y ago)022MITPHP

Since Jun 30Pushed 6y ago1 watchersCompare

[ Source](https://github.com/huhu2323/luuid)[ Packagist](https://packagist.org/packages/haymetg/luuid)[ RSS](/packages/haymetg-luuid/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (2)DependenciesVersions (3)Used By (0)

LUUID (Liam-senpai UUID)
========================

[](#luuid-liam-senpai-uuid)

A Laravel package for creating uuid primary keys.

How to use?
-----------

[](#how-to-use)

1. Install `composer require haymetg/luuid`
2. use `luuid()` in migration,

*Example:*

```
Schema::create('posts', function (Blueprint  $table) {
    $table->luuid(); // you can also custom your luuid `luuid('post_id')`
    $table->string('title');
    $table->string('body');
    $table->timestamps();
});

```

3. use `WithUuid` trait in your Model and declare the primary key

*Example:*

```
namespace  App;

use HaymeTG\LUUID\Traits\WithUuid;
use Illuminate\Database\Eloquent\Model;

class Post extends Model
{
	use WithUuid;
	protected $primaryKey = 'uuid';
}

```

Done! This will automatically generate unique UUID whenever you save a new record.

Credits:
--------

[](#credits)

Liam-senpai

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 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 ~0 days

Total

2

Last Release

2231d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/655567e527aa4944ce2a1d140028f70e649aa9164129db82aa319d367f6f8cc3?d=identicon)[haymetg](/maintainers/haymetg)

---

Top Contributors

[![huhu2323](https://avatars.githubusercontent.com/u/16172309?v=4)](https://github.com/huhu2323 "huhu2323 (5 commits)")

### Embed Badge

![Health badge](/badges/haymetg-luuid/health.svg)

```
[![Health](https://phpackages.com/badges/haymetg-luuid/health.svg)](https://phpackages.com/packages/haymetg-luuid)
```

###  Alternatives

[devitek/yaml-configuration

Add YAML file support to Laravel Configuration

1614.2k](/packages/devitek-yaml-configuration)[riverskies/laravel-vue-component

Helper package to aid usage of Vue Components within Laravel projects

201.2k](/packages/riverskies-laravel-vue-component)

PHPackages © 2026

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