A trait to use ordered uuids as primary keys on your eloquent models.
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
You can install the package via composer:
composer require wfeller/laravel-uuid-primary-key
Add the following trait to your eloquent models:
class Car extends \Illuminate\Database\Eloquent\Model
{
use \WF\UuidPrimaryKey\HasUuidPrimaryKey;
// ...
}
composer test
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
If you discover any security related issues, please email me instead of using the issue tracker.