Skip to content
This repository has been archived by the owner on Nov 21, 2022. It is now read-only.

wfeller/laravel-uuid-primary-key

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Uuid primary key

Latest Version on Packagist Total Downloads Plant Tree Buy us a tree

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.

Credits

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages