Skip to content

Bug: Validation not working  #2418

Description

@rsRamgharia

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]',
    ];

Screenshot from 2019-11-19 13-13-54

See the above image i remove password from the array and model doesn't validate that field

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugVerified issues on the current code behavior or pull requests that will fix them

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions