bdelespierre/laravel-has-uuid 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

bdelespierre/laravel-has-uuid

最新稳定版本:v1.2.1

Composer 安装命令:

composer require bdelespierre/laravel-has-uuid

包简介

Provides support for UUID key type in Eloquent models

README 文档

README

HasUuid Example

Laravel Has UUID

Latest Version on Packagist Total Downloads Build Status StyleCI Quality Score

Provides support for UUID primary keys in Eloquent models. Built on top of webpatser/laravel-uuid ❤️

Installation

Via Composer

$ composer require bdelespierre/laravel-has-uuid

Usage

namespace App\Models;

use Bdelespierre\HasUuid\HasUuid;
use Illuminate\Database\Eloquent\Model;

class User extends Model
{
    use HasUuid;
}

Migration:

Schema::create('users', function (Blueprint $table) {
    $table->uuid('id')->primary();
    // other properties go here...
});

Change log

Please see the changelog for more information on what has changed recently.

Testing

$ composer test

Contributing

Please see contributing.md for details and a todolist.

Security

If you discover any security related issues, please email benjamin.delespierre@gmail.com instead of using the issue tracker.

Credits

License

MIT. Please see the license file for more information.

统计信息

  • 总下载量: 521
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 4
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 4
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-08-23