Skip to content

Commit

Permalink
Merge pull request #1 from tabuna/patch-1
Browse files Browse the repository at this point in the history
Code as text
  • Loading branch information
agoalofalife committed Jul 26, 2021
2 parents 5be5dea + ada5cb0 commit 9c3e6e8
Showing 1 changed file with 25 additions and 6 deletions.
31 changes: 25 additions & 6 deletions README.md
Expand Up @@ -17,25 +17,44 @@ 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.

<a href="https://raw.githubusercontent.com/agoalofalife/orchid-fields/main/.github/IMAGES/range.png">
<img src="https://raw.githubusercontent.com/agoalofalife/orchid-fields/main/.github/IMAGES/range.png" alt="range" align="center" />
</a>
<a href="https://raw.githubusercontent.com/agoalofalife/orchid-fields/main/.github/IMAGES/range.png">
<img src="https://raw.githubusercontent.com/agoalofalife/orchid-fields/main/.github/IMAGES/range-code.png" alt="range" align="center" />
</a>

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.

<a href="https://raw.githubusercontent.com/agoalofalife/orchid-fields/main/.github/IMAGES/rate.png">
<img src="https://raw.githubusercontent.com/agoalofalife/orchid-fields/main/.github/IMAGES/rate.png" alt="range" align="center" />
</a>
<a href="https://raw.githubusercontent.com/agoalofalife/orchid-fields/main/.github/IMAGES/range.png">
<img src="https://raw.githubusercontent.com/agoalofalife/orchid-fields/main/.github/IMAGES/rate-code.png" alt="range" align="center" />
</a>

Example:

```php
use agoalofalife\Orchid\Fields\Rate;

Rate::make('rate')
->count(4)
->readonly(true)
->haveRated(5);
```

0 comments on commit 9c3e6e8

Please sign in to comment.