slivka-b/laravel-uuid 问题修复 & 功能扩展

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

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

slivka-b/laravel-uuid

最新稳定版本:0.1

Composer 安装命令:

composer require slivka-b/laravel-uuid

包简介

[fork] The package provides UUID keys functionality for Eloquent models with one single trait.

README 文档

README

This package is a fork of nevadskiy/laravel-uuid.

Latest Stable Version Tests Code Coverage License

The package provides UUID keys functionality for Eloquent models with one single trait.

More about using UUID as primary keys.

Usage

Add a trait to your model, and it will automatically set the UUID during model creation.

<?php

namespace App;

use Illuminate\Database\Eloquent\Model;
use Nevadskiy\Uuid\Uuid;

class Book extends Model
{
    use Uuid;
}

Update your migrations to specify UUID type for a primary key.

Schema::create('books', function (Blueprint $table) {
    $table->uuid('id')->primary();
});

Installation

Install a package via composer.

composer require imcity-tech/laravel-uuid

Requirements

  • Laravel 9.0 or newer
  • PHP 8.0 or newer

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Any contribution is Welcome.

Please see CONTRIBUTING for more information.

Security

If you discover any security related issues, please e-mail me instead of using the issue tracker.

License

The MIT License (MIT). Please see LICENSE for more information.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-03-21

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固