Repository navigation
Add maxbytes: validation rule #62320
Unanswered
valerio-bozzolan
asked this question in
Ideas
Replies: 1 comment 8 replies
|
Does that mean, you are also in favor of related rules:
or does it make more sense to add them as flags? |
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Current situation: Laravel already has the
max:validation rule, which is good to count human characters (multi-byte).https://laravel.com/framework/docs/12.x/validation#rule-max
Problem: sometime computers have limitations in bytes, not characters 🤓 For example the MariaDB
TEXTfield supports 65535 bytes, which really cannot be validated withmax:65535characters.→ Proposal: a new
maxbytes:validation rule 🎉(This is a follow-up of this merge request: https://gitlab.com/ItalianLinuxSociety/ilsmanager/-/merge_requests/242#note_4161297378 by ValentinNikolaev)
All reactions