From ada5cb09e339809320562d5e6036427e3d77fbae Mon Sep 17 00:00:00 2001 From: Alexandr Chernyaev Date: Mon, 26 Jul 2021 20:38:20 +0300 Subject: [PATCH] Update README.md --- README.md | 31 +++++++++++++++++++++++++------ 1 file changed, 25 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 8c29c93..547d4ba 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,7 @@ Next, you should publish resources files using the `vendor:publish` Artisan comm ``` # Fields + ## Range #### It's very elegant field, which can set min and max value. @@ -24,18 +25,36 @@ Next, you should publish resources files using the `vendor:publish` Artisan comm range - - range - + +Example: + +```php +use agoalofalife\Orchid\Fields\Range; + +Range::make('age') + ->title('Age') + ->min(18) + ->max(50) + ->hasGrid(true); +``` ## Rate + #### It's very elegant field, which can set min and max value. range - - range - + +Example: + +```php +use agoalofalife\Orchid\Fields\Rate; + +Rate::make('rate') + ->count(4) + ->readonly(true) + ->haveRated(5); +```