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

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

xzxzyzyz/laravel-uuid-model
===========================

Uuid Model For Laravel

v1.9.0(1mo ago)02.9kMITPHPPHP ^8.2CI failing

Since Oct 4Pushed 1mo ago1 watchersCompare

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

READMEChangelog (10)Dependencies (14)Versions (14)Used By (0)

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

[](#laravel-uuid-model)

[![Build Status](https://camo.githubusercontent.com/d49b47a47c8d5f683b01f656f2fc3d80be9122199f6cea79884b7ae14722582a/68747470733a2f2f7472617669732d63692e636f6d2f787a787a797a797a2f6c61726176656c2d757569642d6d6f64656c2e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/xzxzyzyz/laravel-uuid-model)[![Latest Stable Version](https://camo.githubusercontent.com/64b8bf43bc043bbfc214ae592edc18a28d7fdcd5f08ec5f584de2acfb98efbce/68747470733a2f2f706f7365722e707567782e6f72672f787a787a797a797a2f6c61726176656c2d757569642d6d6f64656c2f76657273696f6e)](https://packagist.org/packages/xzxzyzyz/laravel-uuid-model)[![License](https://camo.githubusercontent.com/3d0c609fdf159ad7828c2889af4d117c0a7962164ffd240ad1e13ff64b9cf2c8/68747470733a2f2f706f7365722e707567782e6f72672f787a787a797a797a2f6c61726176656c2d757569642d6d6f64656c2f6c6963656e7365)](https://packagist.org/packages/xzxzyzyz/laravel-uuid-model)

Using `uuid` in eloquent model.

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

[](#installation)

```
composer require xzxzyzyz/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 `Xzxzyzyz\Laravel\Uuid\Model` in your model.

```
use Xzxzyzyz\Laravel\Uuid\Model;

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

###  Health Score

53

—

FairBetter than 97% of packages

Maintenance89

Actively maintained with recent releases

Popularity18

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity81

Battle-tested with a long release history

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

Recently: every ~377 days

Total

12

Last Release

56d ago

PHP version history (7 changes)v1.0PHP ^7.1.3

v1.3.0PHP ^7.2

v1.4.0PHP ^7.3

v1.4.1PHP ^7.3|^8.0

v1.5.0PHP ^7.4|^8.0

v1.7.0PHP ^8.1

v1.9.0PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/92c21b559b926a5727a1a39ada90d00d9d0e7fa8c26e0d87d680d86b62f76e40?d=identicon)[xzxzyzyz](/maintainers/xzxzyzyz)

---

Top Contributors

[![xzxzyzyz](https://avatars.githubusercontent.com/u/5880474?v=4)](https://github.com/xzxzyzyz "xzxzyzyz (42 commits)")

---

Tags

eloquentlaravelmodeluuidlaravelmodeleloquentuuid

###  Code Quality

TestsPHPUnit

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/xzxzyzyz-laravel-uuid-model/health.svg)](https://phpackages.com/packages/xzxzyzyz-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)[tucker-eric/eloquentfilter

An Eloquent way to filter Eloquent Models

1.8k4.8M26](/packages/tucker-eric-eloquentfilter)[mongodb/laravel-mongodb

A MongoDB based Eloquent model and Query builder for Laravel

7.1k7.2M71](/packages/mongodb-laravel-mongodb)[cviebrock/eloquent-sluggable

Easy creation of slugs for your Eloquent models in Laravel

4.0k13.6M253](/packages/cviebrock-eloquent-sluggable)[cviebrock/eloquent-taggable

Easy ability to tag your Eloquent models in Laravel.

567694.8k3](/packages/cviebrock-eloquent-taggable)[spiritix/lada-cache

A Redis based, automated and scalable database caching layer for Laravel

591444.8k2](/packages/spiritix-lada-cache)

PHPackages © 2026

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