Use Laravel Precognition to Aid Form Helper #1320
craigrileyuk
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Release notes: Laravel Precognition
Given that Inertia form helpers are so efficient at validating forms, it's pretty much unnecessary to have much in the way of client-side validation these days.
There is one exception though: visual representation of some rules.
It'd be pretty cool if you could feed a form helper instance the eventual submit route and it could retrieve what validation rules will affect which fields when the form is eventually submitted.
This would allow you to easily do things like mark required fields, or password requirements based solely on server-side information without needing you to keep client/server-side rules in sync.
Beta Was this translation helpful? Give feedback.
All reactions