@@ -152,8 +152,7 @@ discard block |
||
152 | 152 | $this->model |
153 | 153 | ->whereKey(collect($this->model |
154 | 154 | ->search(($request->get('query'))) |
155 | - ->raw())->get('ids')) : |
|
156 | - $this->model; |
|
155 | + ->raw())->get('ids')) : $this->model; |
|
157 | 156 | if (array_key_exists('file', $request->toArray())) { |
158 | 157 | //TODO add relation on top if here and create a tree flatter array in array helper |
159 | 158 | return (new ExcelHelper())->setOptions([ |
@@ -408,7 +407,7 @@ discard block |
||
408 | 407 | |
409 | 408 | // return response |
410 | 409 | $response->setData(collect(env('APP_DEBUG') ? $this->model->find($id) : [])); |
411 | - $response->setMessage('Successful to change '.$result.' record'); |
|
410 | + $response->setMessage('Successful to change ' . $result . ' record'); |
|
412 | 411 | return SmartResponse::response($response); |
413 | 412 | |
414 | 413 |
@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | |
14 | 14 | class BaseAuthModel extends Authenticatable |
15 | 15 | { |
16 | - use Searchable, PivotEventTrait,Notifiable, HasApiTokens, MetaTrait; |
|
16 | + use Searchable, PivotEventTrait, Notifiable, HasApiTokens, MetaTrait; |
|
17 | 17 | |
18 | 18 | /** |
19 | 19 | * default relations of method |
@@ -100,7 +100,7 @@ discard block |
||
100 | 100 | */ |
101 | 101 | public function getMethods() |
102 | 102 | { |
103 | - return (new LaravelReflectionHelper())->getClassMethodsNames($this,\ReflectionMethod::IS_PUBLIC); |
|
103 | + return (new LaravelReflectionHelper())->getClassMethodsNames($this, \ReflectionMethod::IS_PUBLIC); |
|
104 | 104 | } |
105 | 105 | |
106 | 106 | /** |