beep / vivid
An expressive set of recipes to extend functionality in Laravel Eloquent.
v1.0.18
2017-07-15 23:50 UTC
Requires
- illuminate/database: ^5.4
- illuminate/queue: ^5.4
- laravel/scout: ^3.0
- ramsey/uuid: ^3.6
Requires (Dev)
- illuminate/events: ^5.4
- phpunit/phpunit: ^6.2
README
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.