@@ -227,8 +227,7 @@ discard block |
||
227 | 227 | $this->model |
228 | 228 | ->whereKey(collect($this->model |
229 | 229 | ->search(($request->get('query'))) |
230 | - ->raw())->get('ids')) : |
|
231 | - $this->model; |
|
230 | + ->raw())->get('ids')) : $this->model; |
|
232 | 231 | |
233 | 232 | if (array_key_exists('file', $request->toArray())) { |
234 | 233 | //TODO add relation on top if here and create a tree flatter array in array helper |
@@ -474,7 +473,7 @@ discard block |
||
474 | 473 | public function update(Request $request, $id) |
475 | 474 | { |
476 | 475 | // Handle permission |
477 | - $request = $this->handlePermission(__FUNCTION__,$request); |
|
476 | + $request = $this->handlePermission(__FUNCTION__, $request); |
|
478 | 477 | $filters = $request['permission_filters']; |
479 | 478 | |
480 | 479 | // Create Response Model |