Skip to content

Commit

Permalink
Updated stubs onUpdateModel()
Browse files Browse the repository at this point in the history
  • Loading branch information
tanthammar committed Sep 30, 2020
1 parent 06dd96a commit 4cc6f40
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion resources/stubs/create-component.stub
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class DummyComponent extends Component
// OPTIONAL method used for the "Save and stay" button, this method already exists in the TallForm trait
public function onUpdateModel($validated_data)
{
$this->model = $this->model->update($validated_data);
$this->model->update($validated_data);
}

public function fields()
Expand Down
2 changes: 1 addition & 1 deletion resources/stubs/update-component.stub
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class DummyComponent extends Component
// Optional method, this already exists in the TallForm trait
public function onUpdateModel($validated_data)
{
$this->model = $this->model->update($validated_data);
$this->model->update($validated_data);
}

public function fields()
Expand Down

0 comments on commit 4cc6f40

Please sign in to comment.