Skip to content

Commit

Permalink
Prepare 13.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
vinkla committed Apr 17, 2023
1 parent b80cc73 commit aeec911
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGELOG

## 13.3.0

- Added and, or and group support to conditional logic

## 13.2.1

- Added float support to `min` and `max` methods
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -628,20 +628,20 @@ Url::make('Link', 'url')
]),

// "and" condition
Textarea::make('Embed code', 'embed')
Textarea::make('Embed Code')
->conditionalLogic([
ConditionalLogic::where('type', '!=', 'document')->and('type', '!=', 'link')
]),

// use multiple conditional logic for "or" condition
Text::make('Title', 'title')
Text::make('Title')
->conditionalLogic([
ConditionalLogic::where('type', '!=', 'document')
ConditionalLogic::where('type', '!=', 'document'),
ConditionalLogic::where('type', '!=', 'link')
]),

// use a conditional field that depends on an other field of an other field group
Text::make('Sub Title', 'sub-title')
// conditional logic that relies on another field from a different field group
Text::make('Sub Title')
->conditionalLogic([
ConditionalLogic::where(
group: 'other-group',
Expand Down

0 comments on commit aeec911

Please sign in to comment.