Closed
Description
Validation is not working if the key is not present in array.
$data = [ 'name' => $name, 'email' => $email, 'password' => $password ];
if i remove any key from the array, then model will never validate that key
protected $validationRules = [
'name' => 'required|alpha_numeric_space|min_length[4]',
'email' => 'required|valid_email|is_unique[users.email]',
'password' => 'required|min_length[6]',
];
See the above image i remove password from the array and model doesn't validate that field
Activity