10000 Add input placeholder documentation (#226) · anthony-dee/laravel-excel-docs@6e5f7e3 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6e5f7e3

Browse files
Add input placeholder documentation (SpartnerNL#226)
1 parent 6063747 commit 6e5f7e3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

4.x/imports/validation.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,9 @@ public function rules(): array
104104

105105
## Custom validation messages
106106

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.
108108

109+
If you include the `:attribute` and `:input` placeholders, they will be substituted with their actual values at runtime.
109110

110111
```php
111112
/**
@@ -124,7 +125,7 @@ public function rules(): array
124125
public function customValidationMessages()
125126
{
126127
return [
127-
'1.in' => 'Custom message for :attribute.',
128+
'1.in' => 'Custom message for :attribute with input :input.',
128129
];
129130
}
130131
```

0 commit comments

Comments
 (0)
0