@@ -501,7 +501,7 @@ discard block |
||
501 | 501 | $relation = substr($this->column, 0, strrpos($this->column, '.')); |
502 | 502 | $args[0] = last(explode('.', $this->column)); |
503 | 503 | |
504 | - return ['whereHas' => [$relation, function ($relation) use ($args) { |
|
504 | + return ['whereHas' => [$relation, function($relation) use ($args) { |
|
505 | 505 | call_user_func_array([$relation, $this->query], $args); |
506 | 506 | }]]; |
507 | 507 | } |
@@ -557,6 +557,6 @@ discard block |
||
557 | 557 | return $this->presenter()->{$method}(...$params); |
558 | 558 | } |
559 | 559 | |
560 | - throw new \Exception('Method "' . $method . '" not exists.'); |
|
560 | + throw new \Exception('Method "'.$method.'" not exists.'); |
|
561 | 561 | } |
562 | 562 | } |