You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| 1 | ValidBitcoinAddress | Validate bitcoin address for ex (1KFHE7w8BhaENAswwryaoccDb6qcT6DbYY) |
73
+
| 2 | ValidCapitalCharWithNumber | Validate String for ex (MILWAD-84) |
74
+
| 3 | ValidDiscordUsername | Validate username discord for ex (Milwad#2134) |
75
+
| 4 | ValidHashtag | Validate hashtag for ex (#milwad) |
76
+
| 5 | ValidIpAddressIPV4 | Validate ip address IPV4 for ex (129.144.50.56) |
77
+
| 6 | ValidIpAddressIPV6 | Validate ip address IPV6 for ex (2001:db8:3333:4444:5555:6666:7777:8888) |
78
+
| 7 | ValidPhoneNumber | Validate phone number for ex (09366000000) |
79
+
| 8 | ValidPort | Validate port value for ex (8080) |
80
+
| 9 | ValidSlug | Validate slug for ex (milwad-dev) |
81
+
| 10 | ValidImei | Validate imei phone for ex (354809104295874) |
82
+
| 11 | ValidStrongPassword | Validate password for ex (Milwad123!) |
83
+
| 12 | ValidUrl | Validate url for ex (https://www.google.com)|
84
+
| 13 | ValidUsername | Validate username for ex (milwad) |
85
+
| 14 | ValidUuid | Validate uuid for ex (123e4567-e89b-12d3-a456-426655440000) |
86
+
| 15 | ValidHexColor | Validate hex color for ex (#fcba03) |
87
+
| 16 | ValidHtmlTag | Validate html tags for ex (``<h1></h1>``) |
88
+
| 17 | ValidNationalCard | Validate national card for ex (015016437) |
89
+
| 18 | ValidCarNumber | Validate car number for ex (KA01AB1234) |
90
+
| 19 | ValidNameDaysWeek | Validate day week for ex (monday) |
91
+
| 20 | ValidEvenNumber | Validate number is even for ex (1024) |
92
+
| 21 | ValidOddNumber | Validate number is odd for ex (4321) |
93
+
| 22 | ValidSlashEndOfString | Validate write slash at the string for ex (milwad/) |
94
+
| 23 | ValidCartNumberIran | Validate cart number for ex (1234123412341234) |
95
+
| 24 | ValidBase64 | Validate base64 for ex (bWlsd2Fk) |
96
+
| 25 | ValidJwt | Validate jwt |
97
+
| 26 | ValidJalaliDate | Validate jalali date for ex (1384/8/25) |
98
+
| 27 | ValidDuplicateCharacter | Validate duplicate characters for ex (1,2,3,4,5,6,7,8,9) |
99
+
| 28 | ValidPattern | Validate texts with specific pattern 🔥 for ex (4444-4444-4444) |
100
+
| 29 | ValidDuplicate | Validate duplicate string, numbers for ex (1123456) |
101
+
| 30 | ValidUlid | Validate ulid for ex (01ARZ3NDEKTSV4RRFFQ69G5FAV) |
102
+
| 31 | ValidDomain | Validate domain name for ex (github.com) |
103
+
| 32 | ValidCamelCase | Validate camel case for ex (milwadDev) |
104
+
| 33 | ValidPascalCase | Validate pascal case for ex (MilwadDev) |
105
+
| 34 | ValidKebabCase | Validate kebab case for ex (milwad-dev) |
106
+
| 35 | ValidSnakeCase | Validate snake case for ex (milwad_dev) |
107
+
| 36 | ValidVatId | Validate european VAT ID ex (EL123456789123) |
108
+
| 37 | ValidIban | Validate IBAN ex (IR062960000000100324200001) |
109
+
| 38 | ValidIranPostalCode | Validate Iran postal code ex (3354355599)|
106
110
107
111
# Rules
108
112
109
113
### ValidPattern
110
114
111
-
Sometimes you need to validate text with pattern, For example you want to validate a text like (4444-4444-4444).
112
-
If you want to check the length of text is seperator after `-` is 4, You can use this Rule:
115
+
Sometimes you need to validate text with a pattern, For example, you want to validate a text like (4444-4444-4444).
116
+
If you want to check the length of the text is separate after `-` is 4, You can use this Rule:
113
117
114
118
```php
115
119
use Milwad\LaravelValidate\Rules\ValidPattern;
@@ -121,7 +125,7 @@ return [
121
125
122
126
### ValidIban
123
127
124
-
Sometimes you need to validate Iban(International Bank Account Number) code.You can use `ValidIban` rule:
128
+
Sometimes you need to validate Iban(International Bank Account Number) code.You can use the`ValidIban` rule:
125
129
126
130
```php
127
131
use Milwad\LaravelValidate\Rules\ValidIban;
@@ -131,7 +135,7 @@ return [
131
135
];
132
136
```
133
137
134
-
Also, You can use `Country` class and add a list of countries to `ValidIban` rule. By doing this your IBAN must belong
138
+
Also, You can use the `Country` class and add a list of countries to the`ValidIban` rule. By doing this your IBAN must belong
135
139
to one of the countries you pass to the validation class:
136
140
137
141
```php
@@ -168,16 +172,31 @@ Also, you can make <a href="https://github.com/milwad-dev/laravel-validate/pulls
168
172
-[x] Russian (ru)
169
173
-[x] Sinhala (si)
170
174
-[x] Swedish (sv)
175
+
-[x] Turkish (tr)
171
176
-[x] Ukrainian (uk)
172
177
-[x] Chinese (zh_CN)
173
178
174
179
# License
180
+
175
181
* This package is created and modified by <ahref="https://github.com/milwad-dev"target="_blank">Milwad Khosravi</a> for Laravel upper more than 9 and is released under the MIT License.
176
182
177
183
# Contributing
184
+
178
185
This project exists thanks to all the people who contribute. [CONTRIBUTING](https://github.com/milwad-dev/laravel-validate/graphs/contributors)
[](https://star-history.com/#milwad-dev/laravel-validate&Date)
196
+
197
+
# Donate
198
+
199
+
If this package is helpful for you, you can buy a coffee for me :) ❤️
0 commit comments