floor9design/laravel-casts-uuid 问题修复 & 功能扩展

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

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

floor9design/laravel-casts-uuid

Composer 安装命令:

composer require floor9design/laravel-casts-uuid

包简介

A class for casting ramsey/uuid into laravel models

README 文档

README

Latest Version Software License

Build Status Build Status

Github Downloads Packagist Downloads

Introduction

The Laravel Framework supports casting of types within models. This class adds the ramsey/uuid UUID class support for laravel models.

Install

Add the following to the composer.json:

    "require": {
        "floor9design/laravel-casts-uuid": "^1.0",
    }

Setup

There are no specific config setup steps required. The class should autoload in PSR-4 compliant systems. If you are using the class on its own, simply include it when using a model:

use Floor9design\LaravelCasts\Uuid as UuidCasts;

protected $casts = [
    'uuid' => UuidCasts::class
];

Note the alias - often it is useful to alias the casting class as it can clash with other Uuid classes, such as the base Uuid class:

use Ramsey\Uuid\Uuid;

// somewhere in the code:
$uuid = Uuid::uuid4();

Testing

Build Status Build Status

Tests can be run as follows:

  • ./vendor/phpunit/phpunit/phpunit

Static analysis/code review can be performed by using phpstan:

  • ./vendor/bin/phpstan

The following tests and also creates code coverage (usually maintained at 100%)

  • ./vendor/phpunit/phpunit/phpunit --coverage-html docs/tests/

Credits

Changelog

A changelog is generated here:

License

This software is proprietary.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-06-05

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固