@@ -55,17 +55,17 @@ |
||
55 | 55 | } |
56 | 56 | |
57 | 57 | if ($collection = $this->getCollection()) { |
58 | - if ($var = $collection |
|
59 | - ->where('key', $key) |
|
60 | - ->whereIn('locale', [$this->locale, null]) |
|
61 | - //->orWhere('locale', null) |
|
62 | - ->first()) { |
|
63 | - |
|
64 | - return $var->value; |
|
65 | - } |
|
66 | - } |
|
58 | + if ($var = $collection |
|
59 | + ->where('key', $key) |
|
60 | + ->whereIn('locale', [$this->locale, null]) |
|
61 | + //->orWhere('locale', null) |
|
62 | + ->first()) { |
|
63 | + |
|
64 | + return $var->value; |
|
65 | + } |
|
66 | + } |
|
67 | 67 | |
68 | - return $default; |
|
68 | + return $default; |
|
69 | 69 | } |
70 | 70 | |
71 | 71 | public function set(string $key, $value = null, $locale = null) |