Skip to content

Commit 0d0aa48

Browse files
authored
Lumen Fix (spatie#201)
Lumen without Facade will not work.
1 parent 0f69b26 commit 0d0aa48

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/HasTranslations.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,11 +167,11 @@ protected function normalizeLocale(string $key, string $locale, bool $useFallbac
167167
return $locale;
168168
}
169169

170-
if (! is_null($fallbackLocale = Config::get('translatable.fallback_locale'))) {
170+
if (! is_null($fallbackLocale = config('translatable.fallback_locale'))) {
171171
return $fallbackLocale;
172172
}
173173

174-
if (! is_null($fallbackLocale = Config::get('app.fallback_locale'))) {
174+
if (! is_null($fallbackLocale = config('app.fallback_locale'))) {
175175
return $fallbackLocale;
176176
}
177177

@@ -180,7 +180,7 @@ protected function normalizeLocale(string $key, string $locale, bool $useFallbac
180180

181181
protected function getLocale(): string
182182
{
183-
return Config::get('app.locale');
183+
return config('app.locale');
184184
}
185185

186186
public function getTranslatableAttributes(): array

0 commit comments

Comments
 (0)