wfeller / laravel-uuid-primary-key
Trait to use ordered uuids on your models.
Installs: 1 045
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Requires
- php: ^7.4|^8.0
- laravel/framework: ^7.3|^8.0|^9.0
- ramsey/uuid: * >= 4.0
Requires (Dev)
- orchestra/testbench: ^5.0|^6.0|^7.0
- phpunit/phpunit: ^8.0|^9.0
README
A trait to use ordered uuids as primary keys on your eloquent models.
Licence
This package is Treeware. If you use it in production, then we ask that you buy the world a tree to thank us for our work. By contributing to the Treeware forest you’ll be creating employment for local families and restoring wildlife habitats.
You can buy trees here offset.earth/treeware
Read more about Treeware at treeware.earth
Installation
You can install the package via composer:
composer require wfeller/laravel-uuid-primary-key
Usage
Add the following trait to your eloquent models:
class Car extends \Illuminate\Database\Eloquent\Model { use \WF\UuidPrimaryKey\HasUuidPrimaryKey; // ... }
Testing (todo)
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email me instead of using the issue tracker.