Skip to content

Commit

Permalink
Nova ^4.17 (#1)
Browse files Browse the repository at this point in the history
* removeNonUpdateFields method removed in nova 4.17

* removeNonCreationFields removed in nova 4.17

* require minimum Nova ^4.17
  • Loading branch information
chrillep authored Nov 23, 2022
1 parent fc79101 commit ae8912d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"license": "MIT",
"require": {
"php": ">=7.1.0"
"laravel/nova": "^4.17"
},
"repositories": [
{
Expand All @@ -56,7 +57,4 @@
},
"minimum-stability": "dev",
"prefer-stable": true,
"require-dev": {
"laravel/nova": "^4.0"
}
}
2 changes: 1 addition & 1 deletion src/NestedFormChild.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class NestedFormChild extends NestedFormSchema
*
* @var string
*/
protected static $filterMethod = 'removeNonUpdateFields';
protected static $filterMethod = 'updateFields';

/**
* Get the current heading.
Expand Down
2 changes: 1 addition & 1 deletion src/NestedFormSchema.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class NestedFormSchema implements JsonSerializable
*
* @var string
*/
protected static $filterMethod = 'removeNonCreationFields';
protected static $filterMethod = 'creationFields';

/**
* Create a new NestedFormSchema instance.
Expand Down

0 comments on commit ae8912d

Please sign in to comment.