update_form_request_messages
Sync custom validation messages with updated Laravel FormRequest rules. Add missing messages, link to translation keys, and remove stale ones. Preview changes with dry-run mode.
Instructions
Synchronise the messages() method of a Laravel FormRequest class: add entries for validation rules that lack a custom message, link them to translation keys, and drop stale ones. Use after changing a FormRequest's rules(). Edits the class file on disk and returns the planned or applied message changes. Set dry_run: true to preview the diff without writing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | When true, return the planned message changes without editing the file. | |
| request_class | Yes | Fully-qualified FormRequest class FQN or repo-relative file path. |