|
|
|
@ -99,7 +99,7 @@ trait ActiveRelationTrait
|
|
|
|
|
* Its signature should be `function($query)`, where `$query` is the query to be customized. |
|
|
|
|
* @return static the relation object itself. |
|
|
|
|
*/ |
|
|
|
|
public function via($relationName, $callable = null) |
|
|
|
|
public function via($relationName, callable $callable = null) |
|
|
|
|
{ |
|
|
|
|
$relation = $this->primaryModel->getRelation($relationName); |
|
|
|
|
$this->via = [$relationName, $relation]; |
|
|
|
|