update_form_request_messages
Synchronize Laravel FormRequest messages() method: add missing custom messages linked to translation keys and remove stale entries after updating rules(). 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 |
|---|---|---|---|
| request_class | Yes | Fully-qualified FormRequest class FQN or repo-relative file path. | |
| dry_run | No | When true, return the planned message changes without editing the file. |