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 2e9c7e3 commit ee5f6e0Copy full SHA for ee5f6e0
src/Mixins/RelationshipsExtraMethods.php
@@ -416,7 +416,17 @@ public function getThroughParent(): \Closure
416
};
417
}
418
419
- public function applyExtraConditions(): \Closure
+ /**
420
+ * Get the farParent for the HasManyThrough relationship.
421
+ */
422
+ public function getFarParent()
423
+ {
424
+ return function () {
425
+ return $this->farParent;
426
+ };
427
+ }
428
+
429
+ public function applyExtraConditions()
430
{
431
return function (PowerJoinClause $join) {
432
foreach ($this->getQuery()->getQuery()->wheres as $condition) {
0 commit comments