Skip to content

Commit

Permalink
Update version
Browse files Browse the repository at this point in the history
  • Loading branch information
ngiraud committed Jun 8, 2020
1 parent e1d4962 commit 2bf37b0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

All notable changes to `ngiraud/nova-translatable-v2` will be documented in this file

## 1.0.4 - 2020-06-08

- Add the ability to use validation rules with {{resourceId}} parameter, thanks to @martinhummer.

## 1.0.3 - 2020-04-24

- Laravel 7 compatibility
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ class Product extends Resource
->translatable()
->rules(['max:255'])
->rulesFor('fr', [
'required'
'required',
'unique:products,sku->fr,{{resourceId}}'
])
}
}
Expand Down

0 comments on commit 2bf37b0

Please sign in to comment.