Skip to content

Commit

Permalink
add validation docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Dillingham committed Jan 11, 2019
1 parent a7be9b1 commit 625dbb5
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,17 @@ Items::make('Emails')->values($this->emails),
| **deleteButtonValue(html)** | value for delete button | No | "x" |
| **createButtonValue(html)** | value for create button | No | "Add" |

### Validation

```php

Items::make('Emails')->values($this->emails)->rules([
'emails.*' => 'email|min:10',
]),
```

![validation](https://user-images.githubusercontent.com/29180903/51055617-54a36d00-15ae-11e9-86d2-b8a2b14e5d5a.png)

### Sidenotes


Expand Down

0 comments on commit 625dbb5

Please sign in to comment.