You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Validation rules in RuleListTrait should match laravel 8.x validation rules
Your environment
version of this package: newest
version of Laravel: 8.x or higher
Steps to reproduce
Use any of the none pre-defined available validation rules; EG: "Present". It will consider these rules as "server rules" and make them laravelValidationRemote properties. which causes unnecessary requests for issues that do not require server-side validation.
List of rules that are not added in Support/RuleListTrait.php
AcceptedIf
CurrentPassword (should most likely be serverRule)
DateEquals
EndsWith
Exclude
ExcludeIf
ExcludeUnless
GreaterThan
GreaterThanOrEqual
LessThan
LessThanOrEqual
MultipleOf
NotRegex
Present
Prohibited
ProhibitedIf
ProhibitedUnless
Prohibits
StartsWith
UUID
Expected behaviour
Validation rules are properly parsed as clientRules or serverRules when they're laravel default rules that don't require server side logic.
Actual behaviour
All laravel validation rules that are newly added in laravel 8.x will be parsed as serverRules and create overhead in Ajax requests.
The text was updated successfully, but these errors were encountered:
This issue/proposal has been automatically marked as idle and stale because it hasn't had any recent activity. It will be automatically closed if no further activity occurs. If you think this is wrong, or the problem still persists, just pop a reply in the comments and one of the maintainers will (try!) to follow up. Thank you for contributing :)
Subject of the issue
Support for laravel 8:
Your environment
Steps to reproduce
Use any of the none pre-defined available validation rules; EG: "Present". It will consider these rules as "server rules" and make them laravelValidationRemote properties. which causes unnecessary requests for issues that do not require server-side validation.
List of rules that are not added in Support/RuleListTrait.php
Expected behaviour
Validation rules are properly parsed as clientRules or serverRules when they're laravel default rules that don't require server side logic.
Actual behaviour
All laravel validation rules that are newly added in laravel 8.x will be parsed as serverRules and create overhead in Ajax requests.
The text was updated successfully, but these errors were encountered: