cownet/laravel-uuid
Composer 安装命令:
composer require cownet/laravel-uuid
包简介
Laravel extension for UUID use in model
README 文档
README
Laravel UUID
Laravel extension for UUID use in model. This library is a wrapper that allows WebPatser UUID library to auto-integrate within Laravel eloquent model.
Installation
Using composer
composer require cownet/laravel-uuid
Setup
Change model namespace from
use Illuminate\Database\Eloquent\Model;
To
use Cownet\Laravel\Uuid\Model;
To enable UUID in your model, as per Laravel's documentation, apply public $incrementing = false; on your model
and it will have UUID support instead of auto incrementing.
统计信息
- 总下载量: 137.3k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 5
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-09-29