Mirror Validation Rules to input in Blade #52216
Unanswered
ProgrammerZ
asked this question in
Ideas
Replies: 1 comment 1 reply
-
That's why they built precognition. 😅 |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
It would be awesome not to copy common validation attributes to the
<input>
like:required
,minlength
,maxlength
andpattern
.Let's say we have a rule
'title' => 'required|unique:posts|max:255'
and by providing something like
<input type="text" @rules('title') />
it will output
<input type="text" required maxlength="255">
Beta Was this translation helpful? Give feedback.
All reactions