PHPackages                             andach/laravel-primary-key-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. andach/laravel-primary-key-uuid

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

andach/laravel-primary-key-uuid
===============================

This is an incredibly simple package to add a simple trait for Laravel models where the primary key is a UUID.

1.0.0(2y ago)06882MITPHPPHP ^8.1

Since Sep 13Pushed 1y agoCompare

[ Source](https://github.com/andach-limited/laravel-primary-key-uuid)[ Packagist](https://packagist.org/packages/andach/laravel-primary-key-uuid)[ Docs](https://github.com/andach-limited/laravel-primary-key-uuid)[ RSS](/packages/andach-laravel-primary-key-uuid/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (6)Versions (2)Used By (2)

This is my package laravel-primary-key-uuid
===========================================

[](#this-is-my-package-laravel-primary-key-uuid)

[![Latest Version on Packagist](https://camo.githubusercontent.com/9711d5438019950eb2d5513a870565a1e7b411492c03a4aa2a506d9f873abaea/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f616e646163682f6c61726176656c2d7072696d6172792d6b65792d757569642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/andach/laravel-primary-key-uuid)[![GitHub Tests Action Status](https://camo.githubusercontent.com/27ee46bc1c838ccdeb7b9f8275c551d78fa95d10ce6133bfaef3f5328b45f57e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f616e646163682f6c61726176656c2d7072696d6172792d6b65792d757569642f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/andach/laravel-primary-key-uuid/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/8497dbea112df39e07e6382da0219d6ce246d23350ee706789b3b4174446e6e9/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f616e646163682f6c61726176656c2d7072696d6172792d6b65792d757569642f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/andach/laravel-primary-key-uuid/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/133f8daa322c750ea8bc432bb9dd15c6f3d4dcb0a3998cc3ca6e2240719f2853/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f616e646163682f6c61726176656c2d7072696d6172792d6b65792d757569642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/andach/laravel-primary-key-uuid)

This is an incredibly simple package to add a simple trait for Laravel models where the primary key is a UUID.

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

[](#installation)

You can install the package via composer:

```
composer require andach/laravel-primary-key-uuid
```

There are no migrations, views or config file.

Usage
-----

[](#usage)

```
