File: aksara/Language/en/Validation.php

Recommend this page to a friend!
  Classes of Aby Dahana  >  Aksara  >  aksara/Language/en/Validation.php  >  Download  
File: aksara/Language/en/Validation.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Aksara
A CodeIgniter based API and CRUD generator
Author: By
Last change: Refine the "unique" validation

This commit is change the "is_unique" rule of validation to "unique" instead (custom rules). The default "is_unique" rules has limitation of field, so you can't validate the unique field related to parent category. This "unique" rules added to solve that.
Add the validation and new assets
Date: 3 months ago
Size: 700 bytes
 

Contents

Class file image Download
<?php

/**
 * This file is part of the CodeIgniter 4 framework.
 *
 * (c) CodeIgniter Foundation <admin@codeigniter.com>
 *
 * For the full copyright and license information, please view
 * the LICENSE file that was distributed with this source code.
 */

// Validation language settings
return [
   
// Custom
   
'unique' => 'The {field} you entered already registered.',
   
'boolean' => 'The {field} must be checked or rather ignored.',
   
'currency' => 'The {field} must be contain valid currency.',
   
'valid_date' => 'The {field} must be contain valid date.',
   
'valid_year' => 'The {field} must be contain valid year.',
   
'valid_hex' => 'The {field} must be contain only hex color code.'
];

For more information send a message to info at phpclasses dot org.