Skip to content

[BUG] Lumen overwrites validation.presence with Illuminate\Validation\DatabasePresenceVerifier #202

@blacktemplar

Description

@blacktemplar

I am trying to use the presence validation for doctrine, but I cannot use it with Lumen since it gets overwritten by the default presence provider. I am using the Lumen Framework 5.3.3.

I debugged it a little bit and the problem seems to be that registerValidatorBindings() in Laravel\Lumen\Application.php binds a function which calls register('Illuminate\Validation\ValidationServiceProvider'). In the ValidationServiceProvider the validation.presence singleton gets overwritten. So it seams to be a problem with the Lumen Framework.

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