PHPackages                             kduma/eloquent-guidable - 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. kduma/eloquent-guidable

Abandoned → [kduma/eloquent-uuidable](/?search=kduma%2Feloquent-uuidable)ArchivedLibrary[Database &amp; ORM](/categories/database)

kduma/eloquent-guidable
=======================

Eases using and generating guid's in Laravel Eloquent models.

2.01(9y ago)0230MITPHPPHP &gt;=5.4.0

Since Mar 5Pushed 7y ago1 watchersCompare

[ Source](https://github.com/kduma-OSS/LV-eloquent-guidable)[ Packagist](https://packagist.org/packages/kduma/eloquent-guidable)[ RSS](/packages/kduma-eloquent-guidable/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (1)Versions (9)Used By (0)

New Version
===========

[](#new-version)

For new apps, please use the newer version available here: [kduma/eloquent-uuidable](https://github.com/kduma-OSS/eloquent-uuidable)

L5-eloquent-guidable
====================

[](#l5-eloquent-guidable)

[![Latest Stable Version](https://camo.githubusercontent.com/14540e3d1d8fa8791ca6288986bd2a7c04c4372179255e920d3252e50d42e016/68747470733a2f2f706f7365722e707567782e6f72672f6b64756d612f656c6f7175656e742d6775696461626c652f762f737461626c652e737667)](https://packagist.org/packages/kduma/eloquent-guidable)[![Total Downloads](https://camo.githubusercontent.com/17624001a27782056d3f6a90d67b17c5cb25ffe235fb072a847f84b90d42f09c/68747470733a2f2f706f7365722e707567782e6f72672f6b64756d612f656c6f7175656e742d6775696461626c652f646f776e6c6f6164732e737667)](https://packagist.org/packages/kduma/eloquent-guidable)[![Latest Unstable Version](https://camo.githubusercontent.com/b03fcf6882a093eabe3824dbb1bab65352cccb14a14b5feb6e574fcfffa52a0d/68747470733a2f2f706f7365722e707567782e6f72672f6b64756d612f656c6f7175656e742d6775696461626c652f762f756e737461626c652e737667)](https://packagist.org/packages/kduma/eloquent-guidable)[![License](https://camo.githubusercontent.com/d6537c585ac0c88b1fd04dba64accd76042309c4fcbb5d1b8927cdc86ae6595d/68747470733a2f2f706f7365722e707567782e6f72672f6b64756d612f656c6f7175656e742d6775696461626c652f6c6963656e73652e737667)](https://packagist.org/packages/kduma/eloquent-guidable)[![SensioLabsInsight](https://camo.githubusercontent.com/71f97f4c61a947320aeed8f521de4fa5190f1356dc415365dbf1fd6c2692b53b/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f32363664616639642d643037312d346633632d393035352d3061353434353330346339302f6d696e692e706e67)](https://insight.sensiolabs.com/projects/266daf9d-d071-4f3c-9055-0a5445304c90)[![StyleCI](https://camo.githubusercontent.com/a0ea614ac4eca819fa1d8117ee2fb650deda4a4795074b06bbea27c7dc0a07c7/68747470733a2f2f7374796c6563692e696f2f7265706f732f33313731393736362f736869656c643f6272616e63683d6d6173746572)](https://styleci.io/repos/31719766)

Eases using and generating guid's in Laravel Eloquent models.

Setup
=====

[](#setup)

Add the package to the require section of your composer.json and run `composer update`

```
"kduma/eloquent-guidable": "^1.1"

```

Prepare models
==============

[](#prepare-models)

Inside your model (not on top of file) add following lines:

```
use \KDuma\Eloquent\Guidable;

```

In database create `guid` string field. If you use migrations, you can use following snippet:

```
$table->string('guid')->unique();

```

Usage
=====

[](#usage)

By default it generates slug on first save.

- `$model->newGuid()` - Generate new guid. (Remember to save it by yourself)
- `Model::whereGuid($slug)->first()` - Find by guid. (`whereGuid` is query scope)

Packagist
=========

[](#packagist)

View this package on Packagist.org: [kduma/eloquent-guidable](https://packagist.org/packages/kduma/eloquent-guidable)

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

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

Recently: every ~131 days

Total

8

Last Release

3503d ago

Major Versions

v1.1.2 → 2.02016-10-05

### Community

Maintainers

![](https://www.gravatar.com/avatar/d09451622719c7efce1a7971b8e5a875859504882ba2b8c279d1015a99e8f12c?d=identicon)[kduma](/maintainers/kduma)

---

Top Contributors

[![kduma](https://avatars.githubusercontent.com/u/1062582?v=4)](https://github.com/kduma "kduma (12 commits)")

---

Tags

laravelphplaraveleloquentuuidguid

### Embed Badge

![Health badge](/badges/kduma-eloquent-guidable/health.svg)

```
[![Health](https://phpackages.com/badges/kduma-eloquent-guidable/health.svg)](https://phpackages.com/packages/kduma-eloquent-guidable)
```

###  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)[weebly/laravel-mutate

Mutate Laravel attributes

1354.7k](/packages/weebly-laravel-mutate)[jrsaunders/shard-matrix

A Complete Database Sharding system for MYSQL and/or Postgres. Using Laravels Query Builder easily scale up your application. Configure your whole solution in one Yaml Config file.

271.5k](/packages/jrsaunders-shard-matrix)

PHPackages © 2026

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