Skip to content

Commit 969a147

Browse files
committed
Fixing where clause whereKey to where('key',
in 5.4 this broke and isn't searching for the id column and not the key column.
1 parent 21f0247 commit 969a147

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

Modules/Translation/Repositories/Eloquent/EloquentTranslationRepository.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ class EloquentTranslationRepository extends EloquentBaseRepository implements Tr
1616
public function findByKeyAndLocale($key, $locale = null)
1717
{
1818
$locale = $locale ?: app()->getLocale();
19-
2019
$translation = $this->model->where('key', $key)->with('translations')->first();
2120
if ($translation && $translation->hasTranslation($locale)) {
2221
return $translation->translate($locale)->value;

0 commit comments

Comments
 (0)