📍 /home/diasdiamonds/public_html/adminarea/src/Model/Validation
📝 Editando: UserValidator.php
<?php namespace App\Model\Validation; use Cake\Validation\Validator; use Cake\ORM\Table; use Cake\ORM\Rule\IsUnique; class UserValidator extends Validator { public function __construct() { parent::__construct(); $this ->notEmpty('email', 'Fill Valid Email Id') ->notEmpty('password', 'Password Length Must Be 8') ->add('password', [ 'minLength' => ['rule' => ['minLength', 8],'message' => 'Password Length Must Be 8'] ]) ->notEmpty('name', 'The name field cannot be left empty') ->notEmpty('mobile', 'Fill Valid Phone No.') ->add('mobile', [ 'numeric' => ['rule' => ['numeric'],'message' => 'Fill Valid Phone No.'] ]) ->notEmpty('mobile', 'Fill Valid Mobile') ->add('mobile', [ 'numeric' => ['rule' => ['numeric'],'message' => 'Fill Valid Mobile'] ]) ->notEmpty('otp', 'Fill Valid OTP') ->add('otp', [ 'numeric' => ['rule' => ['numeric'],'message' => 'Fill Valid OTP'] ]); } }
[ Cancelar ]
Nome
Permissões
Ações
[ .. Voltar ]
📄 ContactValidator.php
0644
[ EDITAR/VER ]
📄 DeliveryValidator.php
0644
[ EDITAR/VER ]
📄 LoginValidator.php
0644
[ EDITAR/VER ]
📄 PaymentsValidator.php
0644
[ EDITAR/VER ]
📄 UserValidator.php
0644
[ EDITAR/VER ]