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

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

hnhdigital-os/laravel-model-uuid
================================

Provides UUID datatype support for the Eloquent ORM

1.0.9(7y ago)1250MITPHPPHP &gt;=7.0

Since Dec 31Pushed 7y agoCompare

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

READMEChangelog (10)Dependencies (5)Versions (11)Used By (0)

```
    __                                ____  ____  __________
   / /   ____ __________ __   _____  / / / / / / / /  _/ __ \
  / /   / __ `/ ___/ __ `/ | / / _ \/ / / / / / / // // / / /
 / /___/ /_/ / /  / /_/ /| |/ /  __/ / /_/ / /_/ // // /_/ /
/_____/\__,_/_/   \__,_/ |___/\___/_/\____/\____/___/_____/

```

Adds support for the UUID datatype column for models.

[![Latest Stable Version](https://camo.githubusercontent.com/0ce9f0e6d9c67510fca831cfaabaf6ef3983a0457f2bdfb1a13bd1bca837b5b8/68747470733a2f2f706f7365722e707567782e6f72672f686e686469676974616c2d6f732f6c61726176656c2d6d6f64656c2d757569642f762f737461626c652e737667)](https://packagist.org/packages/hnhdigital-os/laravel-model-uuid) [![Total Downloads](https://camo.githubusercontent.com/3794ba2825aaad0cef2e786c90463449ffa446c0da0f2917fd672cb730114110/68747470733a2f2f706f7365722e707567782e6f72672f686e686469676974616c2d6f732f6c61726176656c2d6d6f64656c2d757569642f646f776e6c6f6164732e737667)](https://packagist.org/packages/hnhdigital-os/laravel-model-uuid) [![Latest Unstable Version](https://camo.githubusercontent.com/e4ca17e0cce4b0c7ee2bfeeb3b62e88cd31695124cd4c18ba059ee016ae2d873/68747470733a2f2f706f7365722e707567782e6f72672f686e686469676974616c2d6f732f6c61726176656c2d6d6f64656c2d757569642f762f756e737461626c652e737667)](https://packagist.org/packages/hnhdigital-os/laravel-model-uuid) [![Built for Laravel](https://camo.githubusercontent.com/ddd4a07bb769306a9338cffde2032c289e4d43d43ac346122709465a47cdff3f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4275696c745f666f722d4c61726176656c2d677265656e2e737667)](https://laravel.com/) [![License](https://camo.githubusercontent.com/6d0ac36efbbb402a3f16188660cc0c5b6e38a2ed0a2c9ebdd2fe8a075c1030cc/68747470733a2f2f706f7365722e707567782e6f72672f686e686469676974616c2d6f732f6c61726176656c2d6d6f64656c2d757569642f6c6963656e73652e737667)](https://packagist.org/packages/hnhdigital-os/laravel-model-uuid)

[![Build Status](https://camo.githubusercontent.com/05873bfe95171aef96e3078b8c395a1abe925fcbb6ef57862500f92712b885a9/68747470733a2f2f7472617669732d63692e6f72672f686e686469676974616c2d6f732f6c61726176656c2d6d6f64656c2d757569642e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/hnhdigital-os/laravel-model-uuid) [![StyleCI](https://camo.githubusercontent.com/085089d8b949f43ca79d8080a93e364a38ab62aaa6179e4e463845a9b0fe462e/68747470733a2f2f7374796c6563692e696f2f7265706f732f36313534333231342f736869656c643f6272616e63683d6d6173746572)](https://styleci.io/repos/61543214) [![Test Coverage](https://camo.githubusercontent.com/07486270bdbec08db9e197e8c7b5c9692727fc44d226451f8060217fb9213a86/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f686e686469676974616c2d6f732f6c61726176656c2d6d6f64656c2d757569642f6261646765732f636f7665726167652e737667)](https://codeclimate.com/github/hnhdigital-os/laravel-model-uuid/coverage) [![Issue Count](https://camo.githubusercontent.com/f38683ca528f44db834b50d0db9ecfb265d5985201c6a30330fb672c739f6357/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f686e686469676974616c2d6f732f6c61726176656c2d6d6f64656c2d757569642f6261646765732f69737375655f636f756e742e737667)](https://codeclimate.com/github/hnhdigital-os/laravel-model-uuid) [![Code Climate](https://camo.githubusercontent.com/f6e12382f69930a8c076b59e3e128af30aaf16b7754d8fc5448c99db3687bfab/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f686e686469676974616c2d6f732f6c61726176656c2d6d6f64656c2d757569642f6261646765732f6770612e737667)](https://codeclimate.com/github/hnhdigital-os/laravel-model-uuid)

This package has been developed by H&amp;H|Digital, an Australian botique developer. Visit us at [hnh.digital](http://hnh.digital).

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

[](#installation)

Via composer:

`$ composer require hnhdigital-os/laravel-model-uuid ~1.0`

Usage
-----

[](#usage)

### Basic

[](#basic)

The feature is exposed through a trait by casting your UUID columns as `uuid`.

```
use Bluora\ModelUuidColumn\UuidTrait;

class User extends Model
{
    use UuidTrait;

    protected $casts = [
        'id' => 'integer',
        'uuid' => 'uuid'
    ];
}
```

### Querying the UUID column

[](#querying-the-uuid-column)

You can then query the UUID column through `whereUuid` (single uuid) and `whereUuidIn` (many uuid's) methods.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](https://github.com/hnhdigital-os/laravel-model-uuid/blob/master/CONTRIBUTING.md) for details.

Credits
-------

[](#credits)

- [Rocco Howard](https://github.com/therocis)
- [All Contributors](https://github.com/hnhdigital-os/laravel-model-uuid/contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](https://github.com/hnhdigital-os/laravel-model-uuid/blob/master/LICENSE) for more information.

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity64

Established project with proven stability

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

Recently: every ~29 days

Total

10

Last Release

2905d ago

PHP version history (2 changes)v1.0.0PHP &gt;=5.4.0

v1.0.4PHP &gt;=7.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/5270e3a3d1add4e39f12dfde3ce549999a26f759d7128056083ab07f475259f2?d=identicon)[bluora](/maintainers/bluora)

---

Top Contributors

[![RoccoHoward](https://avatars.githubusercontent.com/u/227896?v=4)](https://github.com/RoccoHoward "RoccoHoward (34 commits)")

---

Tags

laraveleloquentuuidilluminate

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[hnhdigital-os/laravel-model-json

Provides JSON column support for for Laravel's Eloquent Model.

351.8k](/packages/hnhdigital-os-laravel-model-json)

PHPackages © 2026

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