Skip to content

Commit 33bcf27

Browse files
Fix Import Rule Class in the Documentation
1 parent aad9c18 commit 33bcf27

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/usage/custom-validation-rule.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ $validator = Validator::make($data, [
4848
##### Option 2
4949

5050
```php
51-
use Astrotomic\Translatable\Validation\Rules\TranslatableUnique;
51+
use Illuminate\Validation\Rule;
5252
...
5353

5454
$person = new Person(['name' => 'john doe']);
@@ -90,7 +90,7 @@ $validator = Validator::make($data, [
9090

9191
##### Option 2
9292
```php
93-
use Astrotomic\Translatable\Validation\Rules\TranslatableExists;
93+
use Illuminate\Validation\Rule;
9494
...
9595

9696
$person = new Person(['name' => 'john doe']);

src/Translatable/Locales.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class Locales implements Arrayable, ArrayAccess
2020
protected $config;
2121

2222
/**
23-
* @var array<string>
23+
* @var array<string,string>
2424
*/
2525
protected $locales = [];
2626

0 commit comments

Comments
 (0)