@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function boot() |
15 | 15 | { |
16 | - $this->loadTranslationsFrom(resource_path('lang/vendor/alive2212'), 'laravel_setting_service'); |
|
16 | + $this->loadTranslationsFrom(resource_path('lang/vendor/alive2212'), 'laravel_setting_service'); |
|
17 | 17 | // $this->loadViewsFrom(__DIR__.'/../resources/views', 'alive2212'); |
18 | 18 | // $this->loadMigrationsFrom(__DIR__.'/../database/migrations'); |
19 | 19 | // $this->loadRoutesFrom(__DIR__.'/routes.php'); |
@@ -38,7 +38,7 @@ |
||
38 | 38 | |
39 | 39 | // Publishing the translation files. |
40 | 40 | $this->publishes([ |
41 | - __DIR__.'/../resources/lang/' => resource_path('lang/vendor/alive2212'), |
|
41 | + __DIR__ . '/../resources/lang/' => resource_path('lang/vendor/alive2212'), |
|
42 | 42 | ], 'laravel_setting_service.lang'); |
43 | 43 | |
44 | 44 | // Registering package commands. |
@@ -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([ |
@@ -522,7 +521,7 @@ discard block |
||
522 | 521 | */ |
523 | 522 | public function getTrans($method, $status) |
524 | 523 | { |
525 | - return trans('laravel_smart_restful::' . $this->LOCALE_PREFIX.'.' . get_class($this->model) . '.' . $method . '.' . $status); |
|
524 | + return trans('laravel_smart_restful::' . $this->LOCALE_PREFIX . '.' . get_class($this->model) . '.' . $method . '.' . $status); |
|
526 | 525 | } |
527 | 526 | |
528 | 527 | /** |