Skip to content

Commit faf258e

Browse files
Gummibeeractions-user
authored andcommitted
Prettified Code!
1 parent 4256129 commit faf258e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/usage/custom-validation-rule.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,12 @@ $validator = Validator::make($data, [
6565

6666
```
6767

68-
6968
#### TranslatableExists
7069

7170
Verify if the attribute value exists by confirming its presence in the database; if the value does not exist, raise a validation exception.
7271

73-
7472
##### Option 1
73+
7574
```php
7675
use Astrotomic\Translatable\Validation\Rules\TranslatableExists;
7776
...
@@ -89,6 +88,7 @@ $validator = Validator::make($data, [
8988
```
9089

9190
##### Option 2
91+
9292
```php
9393
use Illuminate\Validation\Rule;
9494
...
@@ -104,4 +104,4 @@ $data = [
104104
$validator = Validator::make($data, [
105105
'name:en' => ['required', Rule::translatableExists(Person::class, 'name:en')],
106106
]);
107-
```
107+
```

0 commit comments

Comments
 (0)