PHPackages                             rap2hpoutre/has-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. rap2hpoutre/has-uuid

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

rap2hpoutre/has-uuid
====================

Use both auto-increment and UUID

v0.0.6(8y ago)1354MITPHPCI failing

Since Oct 4Pushed 5y ago1 watchersCompare

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

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

HasUuid Trait
=============

[](#hasuuid-trait)

What?
-----

[](#what)

Why choose between Seq ID (aka auto-increment) and UUID when you can use **both**? This package helps you to *add* UUID to your Laravel Models.

*You can also use this class if you **only** wants UUID without increments.*

Quick start
-----------

[](#quick-start)

Install with composer:

```
composer require rap2hpoutre/has-uuid
```

Add the trait to your models:

```
