Skip to content

Commit

Permalink
Some Bugfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
marcreichel committed Jan 17, 2019
1 parent 1d3b8ba commit 3738e8f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ public function search(string $query): self
* @return $this
*/
public function where(
string $key,
$key,
$operator = null,
$value = null,
$boolean = '&'
Expand Down
4 changes: 2 additions & 2 deletions src/Models/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ public function toArray(): array
if (is_array($relation)) {
return collect($relation)->map(function($single) {
return $single->toArray();
});
})->toArray();
}
return $relation->toArray();
});
Expand All @@ -292,7 +292,7 @@ public function toJson(): string
if (is_array($relation)) {
return collect($relation)->map(function($single) {
return $single->toJson();
});
})->toJson();
}
return $relation->toJson();
});
Expand Down

0 comments on commit 3738e8f

Please sign in to comment.