Skip to content

Commit 0581a19

Browse files
lonnylotkorridor
authored andcommitted
Include namespaces in examples
1 parent da57c42 commit 0581a19

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

readme.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ This package is tested for the following Laravel versions:
4444
**PostStoreRequest**
4545

4646
```php
47+
use Korridor\LaravelModelValidationRules\Rules\UniqueEloquent;
48+
use Korridor\LaravelModelValidationRules\Rules\ExistsEloquent;
49+
// ...
4750
public function rules()
4851
{
4952
$postId = $this->post->id;
@@ -66,6 +69,9 @@ public function rules()
6669
**PostUpdateRequest**
6770

6871
```php
72+
use Korridor\LaravelModelValidationRules\Rules\UniqueEloquent;
73+
use Korridor\LaravelModelValidationRules\Rules\ExistsEloquent;
74+
// ...
6975
public function rules()
7076
{
7177
$postId = $this->post->id;

0 commit comments

Comments
 (0)