@@ -87,7 +87,7 @@ |
||
87 | 87 | |
88 | 88 | public function voters(Post $post) |
89 | 89 | { |
90 | - $post->load(['votes', 'user' => fn ($query) => $query->select('id', 'name')->withTrashed()]); |
|
90 | + $post->load(['votes', 'user' => fn($query) => $query->select('id', 'name')->withTrashed()]); |
|
91 | 91 | |
92 | 92 | return [ |
93 | 93 | 'id' => $post->id, |