Package Data | |
---|---|
Maintainer Username: | bluora |
Maintainer Contact: | rocco@hnh.digital (Rocco Howard) |
Package Create Date: | 2016-06-20 |
Package Last Update: | 2018-09-17 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2025-01-22 03:03:19 |
Package Statistics | |
---|---|
Total Downloads: | 248 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 1 |
Total Watchers: | 1 |
Total Forks: | 0 |
Total Open Issues: | 0 |
__ ____ ____ __________
/ / ____ __________ __ _____ / / / / / / / / _/ __ \
/ / / __ `/ ___/ __ `/ | / / _ \/ / / / / / / // // / / /
/ /___/ /_/ / / / /_/ /| |/ / __/ / /_/ / /_/ // // /_/ /
/_____/\__,_/_/ \__,_/ |___/\___/_/\____/\____/___/_____/
Adds support for the UUID datatype column for models.
This package has been developed by H&H|Digital, an Australian botique developer. Visit us at hnh.digital.
Via composer:
$ composer require hnhdigital-os/laravel-model-uuid ~1.0
The feature is exposed through a trait by casting your UUID columns as uuid
.
use Bluora\ModelUuidColumn\UuidTrait;
class User extends Model
{
use UuidTrait;
protected $casts = [
'id' => 'integer',
'uuid' => 'uuid'
];
}
You can then query the UUID column through whereUuid
(single uuid) and whereUuidIn
(many uuid's) methods.
Please see CONTRIBUTING for details.
The MIT License (MIT). Please see License File for more information.