Skip to content

Commit 85739a6

Browse files
authored
Merge pull request #64 from milwad-dev/add-md-documention
[1.x] Add all documentation
2 parents 0e787b7 + 86dbf87 commit 85739a6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+491
-8
lines changed
File renamed without changes.

docs/1.x/installation.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Requirements
1+
# Requirements
22
***
33
- ```PHP >= 8.0```
44
- ```Laravel >= 9.0```
@@ -12,20 +12,20 @@
1212
| 1.7 | :x: | :x: | :x: | :white_check_mark: | :white_check_mark: |
1313

1414
# Installation
15-
You can install package with composer.
15+
You can install the package with Composer.
1616

1717
```bash
1818
composer require milwad/laravel-validate
1919
```
2020

2121
# Publish
22-
If you want to publish lang file for custom validation message you can run this command in terminal:
22+
If you want to publish a lang file for a custom validation message you can run this command in the terminal:
2323

2424
```shell
2525
php artisan vendor:publish --tag="validate-lang-{$lang}"
2626
```
2727

28-
You can replace `$lang` to your lang name, for ex:
28+
You can replace `$lang` with your lang name, for ex:
2929

3030
```shell
3131
php artisan vendor:publish --tag="validate-lang-en"

docs/1.x/introduction.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
[![Quality Score](https://img.shields.io/scrutinizer/g/milwad-dev/laravel-validate.svg?style=flat-square)](https://scrutinizer-ci.com/g/milwad-dev/laravel-validate)
1111

1212
***
13-
Laravel validate is a package for validate faster & easier. <br>
13+
Laravel validate is a package for validation faster & easier. <br>
1414
You can validate data easier, Laravel validate have lots of rule class for validation. <br>
15-
This package support localization and you can use for most of the language. <br>
15+
This package support localization and you can use it for most of the language. <br>
1616
(If some language didn't support, you can <a href="https://github.com/milwad-dev/laravel-validate/pulls">PR</a> for new language)

docs/1.x/valid-base64.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
## ValidBase64
2+
3+
If you want to validate base64, you can use `ValidBase64` rule:
4+
5+
```php
6+
use Milwad\LaravelValidate\Rules\ValidBase64;
7+
8+
return [
9+
'base64' => ['required', new ValidBase64()], // base64 => bWlsd2Fk
10+
];
11+
```

docs/1.x/valid-bitcoin-address.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
## ValidBitcoinAddress
2+
3+
If you want to validate your Bitcoin address you can use the `ValidBitcoinAddress` rule:
4+
5+
```php
6+
use Milwad\LaravelValidate\Rules\ValidBitcoinAddress;
7+
8+
return [
9+
'bitcoin-address' => ['required', new ValidBitcoinAddress()], // bitcoin-address => 1KFHE7w8BhaENAswwryaoccDb6qcT6DbYY
10+
];
11+
```

docs/1.x/valid-camel-case.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
## ValidCamelCase
2+
3+
If you want to validate the camel-case string, you can use the `ValidCamelCase` rule:
4+
5+
```php
6+
use Milwad\LaravelValidate\Rules\ValidCamelCase;
7+
8+
return [
9+
'camel-case' => ['required', new ValidCamelCase()], // camel-case => milwadDev
10+
];
11+
```
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
## ValidCapitalCharWithNumber
2+
3+
If you want to validate a capital character with the number you can use the `ValidCapitalCharWithNumber` rule:
4+
5+
```php
6+
use Milwad\LaravelValidate\Rules\ValidCapitalCharWithNumber;
7+
8+
return [
9+
'capital-char-number' => ['required', new ValidCapitalCharWithNumber()], // capital-char-with-number => MILWAD-84
10+
];
11+
```

docs/1.x/valid-car-number.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
## ValidCarNumber
2+
3+
If you want to validate the car number, you can use the `ValidCarNumber` rule:
4+
5+
```php
6+
use Milwad\LaravelValidate\Rules\ValidCarNumber;
7+
8+
return [
9+
'car-number' => ['required', new ValidCarNumber()], // car-number => KA01AB1234
10+
];
11+
```

docs/1.x/valid-cart-number-iran.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
## ValidCartNumberIran
2+
3+
If you want to validate the cart Iran number, you can use the `ValidCartNumberIran` rule:
4+
5+
```php
6+
use Milwad\LaravelValidate\Rules\ValidCartNumberIran;
7+
8+
return [
9+
'number' => ['required', new ValidCartNumberIran()], // number => 1234123412341234
10+
];
11+
```

docs/1.x/valid-discord-username.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
## ValidDiscordUsername
2+
3+
If you want to validate the discord username, you can use the `ValidDiscordUsername` rule:
4+
5+
```php
6+
use Milwad\LaravelValidate\Rules\ValidDiscordUsername;
7+
8+
return [
9+
'discord-username' => ['required', new ValidDiscordUsername()], // discord-username => Milwad#2134
10+
];
11+
```

0 commit comments

Comments
 (0)