-
Notifications
You must be signed in to change notification settings - Fork 11.1k
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
[5.4] ConvertEmptyStringsToNull not working with 'sometimes' validation rule #17807
Comments
What happens if you add nullable to firstname? |
The |
@ongulus what's in |
@ongulus Can you specify the contents of the |
Closing for lack of activity. |
The $request contains "firstname" POST field from |
Not a bug, but a feature :) According to Laravel's documentation - https://laravel.com/docs/5.4/validation#rule-nullable |
Description:
There is a bug in a new Laravel's 5.4 middleware
ConvertEmptyStringsToNull
when usingsometimes
validation rule.Steps To Reproduce:
Try removing
\Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull::class,
inKernel.php
. It works, then.The text was updated successfully, but these errors were encountered: