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 dae8208 commit a2e3cc2Copy full SHA for a2e3cc2
src/PowerJoins.php
@@ -40,7 +40,7 @@ trait PowerJoins
40
public function scopeJoinRelationship(Builder $query, $relationName, $callback = null, $joinType = 'join', $useAlias = false, bool $disableExtraConditions = false): void
41
{
42
$joinType = PowerJoins::$joinMethodsMap[$joinType] ?? $joinType;
43
- $useAlias = $useAlias && !is_string($callback);
+ $useAlias = is_string($callback) ? false : $useAlias;
44
$callback = $this->formatJoinCallback($relationName, $callback);
45
46
if (is_null($query->getSelect())) {
0 commit comments