Skip to content
This repository has been archived by the owner on Dec 3, 2020. It is now read-only.

Commit

Permalink
Merge pull request #85 from dsazup/fix-query-issue
Browse files Browse the repository at this point in the history
Pass a collection by default
  • Loading branch information
lukeraymonddowning authored May 17, 2020
2 parents ff2e937 + d761653 commit 8fc9c2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ function ($model) {
}
);

$this->factory->callAfterCreating($returnFirstCollectionResultAtEnd ? $result->first() : $result);
$this->factory->callAfterCreating($result);
$this->processAfterCreating($result);

$result->each(
Expand Down

0 comments on commit 8fc9c2f

Please sign in to comment.