Skip to content

Commit fc33b3b

Browse files
committed
compatibility nova 2/laravel 5.8
1 parent 220e480 commit fc33b3b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414
"babel-plugin-transform-vue-jsx": "^3.7.0",
1515
"cross-env": "^5.0.0",
1616
"laravel-mix": "^1.0",
17-
"laravel-nova": "^1.0",
17+
"laravel-nova": "^2.0",
1818
"vue-clickaway": "^2.2.2"
1919
},
2020
"dependencies": {
2121
"vue": "^2.5.0"
2222
}
23-
}
23+
}

src/Traits/HasSubfields.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public function setInverseRelationship(string $inverseRelationship)
8080
{
8181
$this->inverseRelationship = $inverseRelationship;
8282

83-
$this->inverseRelationshipKey = $this->resourceInstance::newModel()->{$inverseRelationship}()->getForeignKey();
83+
$this->inverseRelationshipKey = $this->resourceInstance::newModel()->{$inverseRelationship}()->getForeignKeyName();
8484

8585
return $this;
8686
}

0 commit comments

Comments
 (0)