diff --git a/composer.json b/composer.json index 0efeca5..37e827d 100755 --- a/composer.json +++ b/composer.json @@ -31,6 +31,7 @@ "license": "MIT", "require": { "php": ">=7.1.0" + "laravel/nova": "^4.17" }, "repositories": [ { @@ -56,7 +57,4 @@ }, "minimum-stability": "dev", "prefer-stable": true, - "require-dev": { - "laravel/nova": "^4.0" - } } diff --git a/src/NestedFormChild.php b/src/NestedFormChild.php index 150d119..b2f41b0 100755 --- a/src/NestedFormChild.php +++ b/src/NestedFormChild.php @@ -13,7 +13,7 @@ class NestedFormChild extends NestedFormSchema * * @var string */ - protected static $filterMethod = 'removeNonUpdateFields'; + protected static $filterMethod = 'updateFields'; /** * Get the current heading. diff --git a/src/NestedFormSchema.php b/src/NestedFormSchema.php index d3128ae..cd4cb95 100755 --- a/src/NestedFormSchema.php +++ b/src/NestedFormSchema.php @@ -48,7 +48,7 @@ class NestedFormSchema implements JsonSerializable * * @var string */ - protected static $filterMethod = 'removeNonCreationFields'; + protected static $filterMethod = 'creationFields'; /** * Create a new NestedFormSchema instance.