PHP code example of rackbeat / laravel-validate-mysql-integers

1. Go to this page and download the library: Download rackbeat/laravel-validate-mysql-integers library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

rackbeat / laravel-validate-mysql-integers example snippets


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

'id'        => ['real_tiny_int:1'], // unsigned
'number'    => ['real_tiny_int:0'], // signed