Skip to content

Commit

Permalink
Merge pull request #50 from Way2Web/fix-for-nova-2.1.0
Browse files Browse the repository at this point in the history
add request as the first parameter as Nova expects
  • Loading branch information
bajramemini authored Aug 27, 2019
2 parents 1df735b + a605ddf commit 900ee86
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
],
"license": "MIT",
"require": {
"php": ">=7.1.0"
"php": ">=7.1.0",
"laravel/nova": "^2.1.0"
},
"autoload": {
"psr-4": {
Expand Down
4 changes: 2 additions & 2 deletions src/TabsOnEdit.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public function creationFields(NovaRequest $request)
[
'Tabs' => [
'component' => 'tabs',
'fields' => $this->removeNonCreationFields($this->resolveFields($request)),
'fields' => $this->removeNonCreationFields($request, $this->resolveFields($request)),
'panel' => Panel::defaultNameForCreate($request->newResource()),
],
]
Expand Down Expand Up @@ -109,7 +109,7 @@ public function updateFields(NovaRequest $request)
[
'Tabs' => [
'component' => 'tabs',
'fields' => $this->removeNonUpdateFields($this->resolveFields($request)),
'fields' => $this->removeNonUpdateFields($request, $this->resolveFields($request)),
'panel' => Panel::defaultNameForUpdate($request->newResource()),
],
]
Expand Down

0 comments on commit 900ee86

Please sign in to comment.