Skip to content

Rules following present are not checked after an empty value #108

Open

Description

@ThHareau

For example:

$validation = $this->validator->validate([
    'must_present_field' => '',
], [
    'must_present_field' => 'present|array',
]);

is passing the validation, whereas it should not.

One option to fix this issue is to set the present rule as required. I'll provide a PR using this.

Activity

  1. BafS commented on Apr 20, 2020

    @BafS

    @emsifa any update ? Is this repo still alive ?

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions