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

ActiveLaravel-library[Utility &amp; Helpers](/categories/utility)

michalkortas/laravel-uuid
=========================

Simply create Eloquent Models &amp; database tables with UUID/GUID primary keys.

v1.0.4(5y ago)2499MITPHP

Since Feb 19Pushed 4y ago1 watchersCompare

[ Source](https://github.com/michalkortas/laravel-uuid)[ Packagist](https://packagist.org/packages/michalkortas/laravel-uuid)[ Docs](https://webroad.pl)[ RSS](/packages/michalkortas-laravel-uuid/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)DependenciesVersions (6)Used By (0)

laravel-uuid
============

[](#laravel-uuid)

Simply create Eloquent Models &amp; database tables with UUID/GUID primary keys.

Installation
============

[](#installation)

```
composer require michalkortas/laravel-uuid

```

Usage
=====

[](#usage)

Add uuid as primary key in your table migration.

```
Schema::create('customers', function (Blueprint $table) {
    $table->uuid('id')->primary();
});
```

Add trait to your Eloquent Model.

```
