Skip to content

Commit

Permalink
add usage
Browse files Browse the repository at this point in the history
  • Loading branch information
clarkeash authored Mar 11, 2018
1 parent 6e2d55b commit 20fee6d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,11 @@ composer require laravel-validation-rules/subdomain
```

## Usage

```php
use LVR\Subdomain\Subdomain;

$request->validate([
'domain' => ['required', new Subdomain],
]);
```

0 comments on commit 20fee6d

Please sign in to comment.