rackbeat/laravel-validate-mysql-integers 问题修复 & 功能扩展

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

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

rackbeat/laravel-validate-mysql-integers

最新稳定版本:2.0

Composer 安装命令:

composer require rackbeat/laravel-validate-mysql-integers

包简介

Validation Rule to ensure a value is within valid Mysql Integer ranges.

README 文档

README

Works for signed and unsigned integers of type: TinyInt, SmallInt, Int, BigInt.

Build Status Coverage Total Downloads Latest Stable Version License

Installation

You just require using composer and you're good to go!

composer require rackbeat/laravel-validate-mysql-integers

The Service Provider is automatically registered.

Usage

Class

  • Rackbeat\Rules\TinyInteger
  • Rackbeat\Rules\SmallInteger
  • Rackbeat\Rules\Integer
  • Rackbeat\Rules\BigInteger
'number' => [
    new Rackbeat\Rules\BigInteger($unsigned = true),
],

Helper

The helpers are prefixed with "real_" to prevent overlapping. It can take an optional parameter to determine if its unsigned. Defaults to false.

  • real_tiny_int
  • real_small_int
  • real_int
  • real_big_int
'id'        => ['real_tiny_int:1'], // unsigned
'number'    => ['real_tiny_int:0'], // signed

Requirements

  • PHP >= 7.1

Contributors

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-05-30