We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bcdcdc5 commit f8db2b3Copy full SHA for f8db2b3
src/BaseQueryBuilderExtend.php
@@ -104,7 +104,11 @@ public function delete(): int
104
*/
105
public function with(array|string $relations, Closure|null|string $callback = null): BaseQueryBuilder
106
{
107
- $this->builder->with($relations, $callback);
+ if (is_null($callback)) {
108
+ $this->builder->with($relations);
109
+ } else {
110
+ $this->builder->with($relations, $callback);
111
+ }
112
return $this->baseQueryBuilder;
113
}
114
0 commit comments