beep/vivid
An expressive set of recipes to extend functionality in Laravel Eloquent.
123
| Install | |
|---|---|
composer require beep/vivid |
|
| Latest Version: | v1.0.18 |
| License: | MIT |
| Last Updated: | Jul 15, 2017 |
| Links: | GitHub · Packagist |
Maintainer: robbiegarvey
Vivid
Vivid is an expressive set of recipes to extend Laravel Eloquent. Features UUID key storage as BINARY(16) and 36 character strings.
Installation
composer require beep/vivid
Usage
Optimized UUID4
<?php
use Beep\Vivid\Database\Eloquent\Model;
class User extends Model
{
}
UUID4
class User extends Model
{
protected $optimizedUuid = false;
}
ToDo
- Cleanup and expand tests both optimized and add non-optimized UUID Model tests.
- Properly cast optimized UUIDs.
- JSON serialization by indicated columns for optimized.