File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -104,8 +104,9 @@ public function rules(): array
104
104
105
105
## Custom validation messages
106
106
107
- By adding ` customValidationMessages() ` method to your import, you can specify custom messages for each failure.
107
+ By adding ` customValidationMessages() ` method to your import, you can specify custom messages for each failure.
108
108
109
+ If you include the ` :attribute ` and ` :input ` placeholders, they will be substituted with their actual values at runtime.
109
110
110
111
``` php
111
112
/**
@@ -124,7 +125,7 @@ public function rules(): array
124
125
public function customValidationMessages()
125
126
{
126
127
return [
127
- '1.in' => 'Custom message for :attribute.',
128
+ '1.in' => 'Custom message for :attribute with input :input .',
128
129
];
129
130
}
130
131
```
You can’t perform that action at this time.
0 commit comments