@@ -207,8 +207,7 @@ discard block |
||
207 | 207 | $this->model |
208 | 208 | ->whereKey(collect($this->model |
209 | 209 | ->search(($request->get('query'))) |
210 | - ->raw())->get('ids')) : |
|
211 | - $this->model; |
|
210 | + ->raw())->get('ids')) : $this->model; |
|
212 | 211 | if (array_key_exists('file', $request->toArray())) { |
213 | 212 | //TODO add relation on top if here and create a tree flatter array in array helper |
214 | 213 | return (new ExcelHelper())->setOptions([ |
@@ -523,7 +522,7 @@ discard block |
||
523 | 522 | */ |
524 | 523 | public function getTrans($method, $status) |
525 | 524 | { |
526 | - return trans('laravel_smart_restful::' . $this->LOCALE_PREFIX.'.' . get_class($this->model) . '.' . $method . '.' . $status); |
|
525 | + return trans('laravel_smart_restful::' . $this->LOCALE_PREFIX . '.' . get_class($this->model) . '.' . $method . '.' . $status); |
|
527 | 526 | } |
528 | 527 | |
529 | 528 | public function setLocale() |