Download the PHP package stevenmaguire/laravel-uuid-model without Composer
On this page you can find all versions of the php package stevenmaguire/laravel-uuid-model. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download stevenmaguire/laravel-uuid-model
More information about stevenmaguire/laravel-uuid-model
Files in stevenmaguire/laravel-uuid-model
Package laravel-uuid-model
Short Description Create non-incrementing Laravel models whose primary key is a UUID
License MIT
Homepage https://github.com/stevenmaguire/laravel-uuid-model
Informations about the package laravel-uuid-model
Laravel Uuid Model
Create non-incrementing models whose primary key is a UUID.
Install
Via Composer
Usage
Extend the UuidModel
By default any model that extends the UuidModel
will automatically assign a random UUID value to the primaryKey
while creating
.
To include custom "UUID attributes", each model that extends the UuidModel
can declare those attributes as an array value for the uuidAttributes
property.
This will result in the model's primary key, id
, foo
, and bar
all being automatically assigned a random UUID value.
Testing
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Steven Maguire
- All Contributors
License
The MIT License (MIT). Please see License File for more information.