Show a field error with the kit input
The Vue starter kit already has InputError. Pass it the validation string. Do not install a second kit.
The Vue starter kit already has InputError. Pass it the validation string. Do not install a second kit.
Send enum cases as value and label props. Validate the posted string with Rule::enum.
useRemember keeps a filter in the history entry. It is the wrong place for a password or a draft you must not lose.
router.post sends one action that has no fields. useForm is the right call when the user is typing.
The progress bar is a setting on createInertiaApp. A second progress library fights the one the kit starts.
preserveScroll stops a filter or a save from jumping to the top of a long Vue page.
preserveState leaves the current component in place. Validation errors stick around if you force it on after a save.
onSuccess can reset one field after a save. Resetting before the redirect drops the value you meant to send.
A custom rule is a class with validate(). The Vue page still prints form.errors for that field.
The image rule checks the upload. Send it as POST with a file field, including when you are updating.
The confirmed rule checks password_confirmation. The Vue form needs that second field name.
Rule::unique()->ignore() lets the signed-in user keep their email. A plain unique rule fails on save.
Newsletter
One short email with new guides, release notes worth reading and hand-picked community links. No spam, unsubscribe any time.