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

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

dtt/laravel-uuid-model
======================

Uuid Model For Laravel

2.1.3(2y ago)023MITPHPPHP &gt;=7.1.3

Since Apr 28Pushed 2y ago1 watchersCompare

[ Source](https://github.com/duocthai/laravel-uuid-model)[ Packagist](https://packagist.org/packages/dtt/laravel-uuid-model)[ RSS](/packages/dtt-laravel-uuid-model/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (3)Versions (7)Used By (0)

Laravel Uuid Model
==================

[](#laravel-uuid-model)

[![Build Status](https://camo.githubusercontent.com/283f146aae453cce80189d178567a6b357e94e283c43f8317a5377a6a8fa74d8/68747470733a2f2f7472617669732d63692e636f6d2f64756f63746861692f6c61726176656c2d757569642d6d6f64656c2e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/duocthai/laravel-uuid-model)[![Latest Stable Version](https://camo.githubusercontent.com/86f1b0adbb7acb53f5a22ccd237ba40c6a552c9c9e688b8384275070f7792e48/68747470733a2f2f706f7365722e707567782e6f72672f44542f6c61726176656c2d757569642d6d6f64656c2f76657273696f6e)](https://packagist.org/packages/duocthai/laravel-uuid-model)[![License](https://camo.githubusercontent.com/e37439b9967c5442464f033571bd2e3fb162c3a51126344140f7ac0e087dbcbc/68747470733a2f2f706f7365722e707567782e6f72672f44542f6c61726176656c2d757569642d6d6f64656c2f6c6963656e7365)](https://packagist.org/packages/duocthai/laravel-uuid-model)

Using `uuid` in eloquent model.

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

[](#installation)

```
composer require dtt/laravel-uuid-model
```

Usage
-----

[](#usage)

Create primary key as string type.

```
/**
 * Run the migrations.
 *
 * @return void
 */
public function up()
{
	Schema::create('example', function(Blueprint $table) {
		$table->uuid('id')->primary();
		// ...
	});
}
```

And, Extends `DT\Laravel\Uuid\Model` in your model.

```
use DT\Laravel\Uuid\Model;

class Example extends Model
{
	//...
}
```

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

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

Total

4

Last Release

1092d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/56f6c01be91282c65c15a7809b403ff1cc676f3c5bc991be97e2ae71ced7591d?d=identicon)[duocthai](/maintainers/duocthai)

---

Top Contributors

[![duocttcls](https://avatars.githubusercontent.com/u/48943570?v=4)](https://github.com/duocttcls "duocttcls (15 commits)")[![duocthai](https://avatars.githubusercontent.com/u/47618469?v=4)](https://github.com/duocthai "duocthai (9 commits)")

---

Tags

laravelmodeleloquentuuid

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  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)[shiftonelabs/laravel-cascade-deletes

Adds application level cascading deletes to Eloquent Models.

163632.1k2](/packages/shiftonelabs-laravel-cascade-deletes)[highsolutions/eloquent-sequence

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

121130.3k](/packages/highsolutions-eloquent-sequence)[phaza/single-table-inheritance

Single Table Inheritance Trait

1515.8k](/packages/phaza-single-table-inheritance)

PHPackages © 2026

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