From 20fee6d06c826c6dc39e1cf34890b1227d12c716 Mon Sep 17 00:00:00 2001 From: Ashley Clarke Date: Sun, 11 Mar 2018 16:47:48 +0100 Subject: [PATCH] add usage --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 9b62ad2..b360369 100644 --- a/README.md +++ b/README.md @@ -27,3 +27,11 @@ composer require laravel-validation-rules/subdomain ``` ## Usage + +```php +use LVR\Subdomain\Subdomain; + +$request->validate([ + 'domain' => ['required', new Subdomain], +]); +```