@@ -9,8 +9,8 @@ discard block |
||
9 | 9 | { |
10 | 10 | public static function bootComputedProperties() |
11 | 11 | { |
12 | - Builder::macro('withComputed', function ($properties) { |
|
13 | - collect($properties)->each(function ($property) { |
|
12 | + Builder::macro('withComputed', function($properties) { |
|
13 | + collect($properties)->each(function($property) { |
|
14 | 14 | if (!$this->model->hasComputedProperty($property)) { |
15 | 15 | throw new \InvalidArgumentException("Computed property [$property] does not exist"); |
16 | 16 | } |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | $query = $this->model->callComputedProperty($property, true); |
19 | 19 | |
20 | 20 | if (is_null($this->query->columns)) { |
21 | - $this->query->select([$this->query->from.'.*']); |
|
21 | + $this->query->select([$this->query->from . '.*']); |
|
22 | 22 | } |
23 | 23 | |
24 | 24 | $this->selectSub($query, $property); |