I am upgrading my cakephp code from 2.6.7 to 3.1.5. The old version code works fine:
public $validate = array(
'email' => array(
'rule' => 'isUnique',
'required' => true,
'message' => 'Email already exist'
),
'password' => array(
'rule' => array('minLength', '6'),
'message' => 'password must be minimum 6 characters long'
)
);
Now I want to convert it for cakephp latest version. i.e: 3.1.5 I found a solution for notempty rule. But what is the conversion of code. Or is there any automatic process of version upgrade for old version project?