https://github.com/mungell/laravel-uuid
Laravel UUID helpers
https://github.com/mungell/laravel-uuid
Last synced: 3 months ago
JSON representation
Laravel UUID helpers
- Host: GitHub
- URL: https://github.com/mungell/laravel-uuid
- Owner: MunGell
- Created: 2017-10-25T17:31:05.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-10-28T12:51:08.000Z (over 7 years ago)
- Last Synced: 2025-01-17T01:30:39.624Z (5 months ago)
- Language: PHP
- Size: 8.79 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Laravel UUID helpers
Laravel package to simplify UUID implementation in Eloquent models.
Inspired by [webpaster/laravel-uuid](https://github.com/webpatser/laravel-uuid),
but uses [ramsey/uuid](https://github.com/ramsey/uuid) for generation instead of custom build.## Installation
```bash
composer install digitalie/laravel-uuid
```
## What is included### Auto-generate UUID field value trait
`AutogenerateUuidTrait` when used in Eloquent model will auto-populate `uuid` field with UUID v4.
### Controller method model injection
`UuidRoutableTrait` when used in Eloquent model will modify the way Laravel finds models
to inject into controller methods## License
MIT