@@ -15,17 +15,17 @@ |
||
15 | 15 | { |
16 | 16 | public function boot() |
17 | 17 | { |
18 | - $this->loadMigrationsFrom(__DIR__ . '/database/migrations/'); |
|
18 | + $this->loadMigrationsFrom(__DIR__.'/database/migrations/'); |
|
19 | 19 | |
20 | 20 | $this->publishes([ |
21 | - __DIR__ . '/database/migrations/' => database_path('migrations') |
|
21 | + __DIR__.'/database/migrations/' => database_path('migrations') |
|
22 | 22 | ], 'migrations'); |
23 | 23 | |
24 | 24 | $this->publishes([ |
25 | - __DIR__ . '/config/languages.php' => config_path('languages.php'), |
|
25 | + __DIR__.'/config/languages.php' => config_path('languages.php'), |
|
26 | 26 | ], 'config'); |
27 | 27 | |
28 | - Collection::macro('for', function ($field, $code) { |
|
28 | + Collection::macro('for', function($field, $code) { |
|
29 | 29 | return $this->where('key', $field)->where('locale', $code)->pluck('value')->first() ?? null; |
30 | 30 | }); |
31 | 31 | } |