Skip to content

Commit cc66b4b

Browse files
committed
fix incompatibility issue with laravel nova 3.4.0
1 parent 6f38fdb commit cc66b4b

File tree

6 files changed

+10080
-9
lines changed

6 files changed

+10080
-9
lines changed

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/.idea
22
/vendor
33
/node_modules
4-
package-lock.json
54
composer.phar
65
composer.lock
76
phpunit.xml

dist/js/field.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

+10,077
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"devDependencies": {
1313
"cross-env": "^7.0.2",
1414
"laravel-mix": "^5.0.4",
15-
"laravel-nova": "^1.2.0",
15+
"laravel-nova": "^1.2.2",
1616
"vue-template-compiler": "^2.6.11"
1717
},
1818
"dependencies": {

resources/js/components/FormField.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
* Set the initial, internal value for the field.
6969
*/
7070
setInitialValue() {
71-
this.value = this.field.value || this.field.default || null
71+
this.value = this.field.value || null
7272
},
7373
7474
/**

src/InlineMorphTo.php

-5
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,6 @@ public function types(array $types): self
8282

8383
}
8484

85-
public function default(string $resource): self
86-
{
87-
return $this->withMeta([ 'default' => $resource ]);
88-
}
89-
9085
private function resolveFields(Resource $resourceInstance): Collection
9186
{
9287

0 commit comments

Comments
 (0)