@@ -33,7 +33,7 @@ |
||
| 33 | 33 | */ |
| 34 | 34 | public function visitors($class) |
| 35 | 35 | { |
| 36 | - return $this->visits()->where('visitable_type', $class)->with('visitable')->get()->mapWithKeys(function ($item) { |
|
| 36 | + return $this->visits()->where('visitable_type', $class)->with('visitable')->get()->mapWithKeys(function($item) { |
|
| 37 | 37 | if (isset($item['visitable'])) { |
| 38 | 38 | return [$item['visitable']->id => $item['visitable']]; |
| 39 | 39 | } |