Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Role does not receive previous role's validated value of the same row #11

Open
FahimSakib opened this issue Mar 16, 2024 · 0 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@FahimSakib
Copy link

FahimSakib commented Mar 16, 2024

The custom rules (i.e. UniqueRule()) is not receiving the validated value from the previous rule validation of the same row (if there are any), instead it receive the original value.

Example:

$validated = $request->validate([
            'title' => ['required', 'sanitize:text', new UniqueRule(Tag::class, 'title')],
        ]);

Here, the UniqueRule() does not receiving the sanitized text value although it has a rule "sanitize:text" before the UniqueRule().

@Bit-Code-Developer Bit-Code-Developer added the bug Something isn't working label Mar 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants