@@ -204,8 +204,7 @@ discard block |
||
| 204 | 204 | $this->model |
| 205 | 205 | ->whereKey(collect($this->model |
| 206 | 206 | ->search(($request->get('query'))) |
| 207 | - ->raw())->get('ids')) : |
|
| 208 | - $this->model; |
|
| 207 | + ->raw())->get('ids')) : $this->model; |
|
| 209 | 208 | if (array_key_exists('file', $request->toArray())) { |
| 210 | 209 | //TODO add relation on top if here and create a tree flatter array in array helper |
| 211 | 210 | return (new ExcelHelper())->setOptions([ |
@@ -365,8 +364,7 @@ discard block |
||
| 365 | 364 | $response->setData($result |
| 366 | 365 | ->with( |
| 367 | 366 | collect($this->storeLoad)->count() == 0 ? |
| 368 | - $this->indexLoad : |
|
| 369 | - $this->storeLoad |
|
| 367 | + $this->indexLoad : $this->storeLoad |
|
| 370 | 368 | ) |
| 371 | 369 | ->get()); |
| 372 | 370 | |