New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

rackbeat/laravel-validate-mysql-integers

Validation Rule to ensure a value is within valid Mysql Integer ranges.
43,111 5
Install
composer require rackbeat/laravel-validate-mysql-integers
Latest Version:2.1
PHP:>=7.1
Laravel:5 – 13
License:MIT
Last Updated:Sep 3, 2026
Links: GitHub  ·  Packagist
Maintainer: lasserafn

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

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

Related Packages

fadion/rule

An expressive validation rule builder for Laravel.

1,145 13
codezero/laravel-unique-translation

Check if a translated value in a JSON column is unique in the database.

1,150,993 188
timacdonald/rule-builder

A fluent rule builder for Laravel validation rule generation.

8,288 101
szunisoft/laravel-rule-groups

Make customizable and reusable rule groups easily..

2,638 1
raditzfarhan/sahrule

Missing Laravel validation rules.

114 0

Version History

Version Released PHP Laravel License
2.1 >=7.1 >=5.6 MIT
2.0 >=7.1 ^5.6|^6.0|^7.0|^8.0|^9.0 MIT
1.8 >=7.1 ^5.6|^6.0|^7.0|^8.0 MIT
1.7 >=7.1 ^5.6|^6.0|^7.0|^8.0 MIT
1.6 >=7.1 ^5.6|^6.0|^7.0|^8.0 MIT