File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,7 @@ public function rules()
5050- [ ` Credit Card ` ] ( #creditcard )
5151- [ ` Data URI ` ] ( #datauri )
5252- [ ` Divisible By ` ] ( #divisibleby )
53+ - [ ` Ethereum Address ` ] ( #ethereumaddress )
5354- [ ` Float Number ` ] ( #floatnumber )
5455- [ ` Image URL ` ] ( #imageurl )
5556- [ ` Phone ` ] ( #phone )
@@ -176,6 +177,20 @@ public function rules()
176177}
177178```
178179
180+ ### ` EthereumAddress `
181+ The field under validation must be an [ Ethereum] ( https://ethereum.org/en/ ) address. Does not validate address checksums.
182+
183+ ``` php
184+ use Arifszn\AdvancedValidation\Rules\EthereumAddress;
185+
186+ public function rules()
187+ {
188+ return [
189+ 'foo' => [new EthereumAddress()],
190+ ];
191+ }
192+ ```
193+
179194### ` FloatNumber `
180195
181196The field under validation must be a float number.
You can’t perform that action at this time.
0 commit comments