Skip to content

Commit e299e30

Browse files
committed
Add doc for EthereumAddress
1 parent 71f2239 commit e299e30

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff 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

181196
The field under validation must be a float number.

0 commit comments

Comments
 (0)