in a tag input? In the example below, I get the following error: "The mountedActionsData.0.tags.7 field must not be greater than 25 characters."
TagsInput::make('tags') ->rules(['max:10']) ->validationMessages([ 'max' => 'You can only add up to :max tags.', ]) ->nestedRecursiveRules([ 'min:3', 'max:25', ]);
TagsInput::make('tags') ->rules(['max:10']) ->validationMessages([ 'max' => 'You can only add up to :max tags.', ]) ->nestedRecursiveRules([ 'min:3', 'max:25', ]);
Solution
i am suggesting
->validationMessages([ 'max' => 'You can only add up to :max tags.', '*.max' => 'Test :max message', ])
->validationMessages([ 'max' => 'You can only add up to :max tags.', '*.max' => 'Test :max message', ])