PHPackages                             imcity-tech/laravel-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. imcity-tech/laravel-uuid

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

imcity-tech/laravel-uuid
========================

\[fork\] The package provides UUID keys functionality for Eloquent models with one single trait.

0.8.1(4y ago)01.5k↓50%12MITPHPPHP ^8.0

Since Aug 12Pushed 4y agoCompare

[ Source](https://github.com/imCITY-tech/laravel-uuid)[ Packagist](https://packagist.org/packages/imcity-tech/laravel-uuid)[ Docs](https://github.com/nevadskiy/laravel-uuid)[ RSS](/packages/imcity-tech-laravel-uuid/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (5)Versions (11)Used By (2)

Laravel UUID
============

[](#laravel-uuid)

**This package is a fork of nevadskiy/laravel-uuid.**

[![Latest Stable Version](https://camo.githubusercontent.com/71a302ed6bb07cd28e9a80a68d697ab3fb6f5f8593cbca023402939627ddbfaa/68747470733a2f2f706f7365722e707567782e6f72672f6e65766164736b69792f6c61726176656c2d757569642f76)](https://packagist.org/packages/nevadskiy/laravel-uuid)[![Tests](https://github.com/nevadskiy/laravel-uuid/workflows/Tests/badge.svg)](https://github.com/nevadskiy/laravel-uuid/workflows/Tests/badge.svg)[![Code Coverage](https://camo.githubusercontent.com/c405d62894dc8335d08b75e22befbe8108a8812e3d5fd363f245aae9a112f90c/68747470733a2f2f636f6465636f762e696f2f67682f6e65766164736b69792f6c61726176656c2d757569642f6272616e63682f6d61737465722f6772617068732f62616467652e7376673f6272616e63683d6d6173746572)](https://camo.githubusercontent.com/c405d62894dc8335d08b75e22befbe8108a8812e3d5fd363f245aae9a112f90c/68747470733a2f2f636f6465636f762e696f2f67682f6e65766164736b69792f6c61726176656c2d757569642f6272616e63682f6d61737465722f6772617068732f62616467652e7376673f6272616e63683d6d6173746572)[![License](https://camo.githubusercontent.com/5d49e38b8711fa31dbdda4ba86832e5fdf95988ee44e467a1ddd04850e565408/68747470733a2f2f706f7365722e707567782e6f72672f6e65766164736b69792f6c61726176656c2d757569642f6c6963656e7365)](https://packagist.org/packages/nevadskiy/laravel-uuid)

The package provides UUID keys functionality for Eloquent models with one single trait.

More about using UUID as [primary keys](https://tomharrisonjr.com/uuid-or-guid-as-primary-keys-be-careful-7b2aa3dcb439).

Usage
-----

[](#usage)

Add a trait to your model, and it will automatically set the UUID during model creation.

```
