jasonmccallister/laravel-uuid-as-id
Composer 安装命令:
composer require jasonmccallister/laravel-uuid-as-id
包简介
Simple Laravel package that includes a trait for using UUIDs and IDs on Eloquent models
README 文档
README
This is a simple trait that will override the key on an eloquent model to create a UUID instead of an integer.
Installation
You can install the package via composer:
composer require jasonmccallister/laravel-uuid-as-id
Usage
Update your models to use the trait, and you are done!
<?php namespace App; use Illuminate\Database\Eloquent\Model; use JasonMcCallister\UuidAsId\Traits\UuidAsId; class SomeModel extends Model { use UuidAsId; // the rest of your model's code }
Testing
composer test
Credits
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 24
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-05-13