%PDF- %GIF98; %PNG;
Server : ApacheSystem : Linux host.digitalbabaji.in 4.18.0-513.11.1.el8_9.x86_64 #1 SMP Wed Jan 17 02:00:40 EST 2024 x86_64 User : addictionfreeind ( 1003) PHP Version : 7.2.34 Disable Function : exec,passthru,shell_exec,system Directory : /home/addictionfreeind/public_html/src/Model/Validation/ |
Upload File : |
<?php
namespace App\Model\Validation;
use Cake\Validation\Validator;
use Cake\ORM\Table;
use Cake\ORM\Rule\IsUnique;
class ProfileValidator extends Validator {
public function __construct()
{
parent::__construct();
$this
->notEmpty('email', __('Email cannot be left empty'))
->add('email', 'validFormat', [
'rule' => 'email',
'message' => 'Email cannot be left empty'
])
->notEmpty('name','Name cannot be left empty')
->notEmpty('area','Area cannot be left empty')
->notEmpty('city','City cannot be left empty')
->notEmpty('address','Address cannot be left empty')
->notEmpty('password', 'Password Must Be 8 Digit')
->add('password', [
'minLength' => ['rule' => ['minLength', 8],'last' => true,'message' => 'Password Must Be 8 Digit']
]);
}
}