Skip to content

Commit

Permalink
compatibility with laravel 5.3.
Browse files Browse the repository at this point in the history
  • Loading branch information
aayaresko committed Nov 13, 2016
1 parent d8fd83a commit a74dfe1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/Controllers/TranslationsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@ public function getGroups() {
->select('group')
->distinct()
->orderBy('group')
->lists('group');
->pluck('group');
}

public function getLocales() {
return \DB::table('translations')
->select('locale')
->distinct()
->orderBy('locale')
->lists('locale');
->pluck('locale');
}

public function postItems(Request $request) {
Expand All @@ -49,7 +49,7 @@ public function postItems(Request $request) {
->where('locale', strtolower($request->get('translate')))
->where('group', $request->get('group'))
->orderBy('name')
->lists('value', 'name');
->pluck('value', 'name');

foreach($base as &$item) {
$translate = null;
Expand Down
2 changes: 1 addition & 1 deletion src/DatabaseLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function load($locale, $group, $namespace = null)
return \DB::table('translations')
->where('locale', $locale)
->where('group', $group)
->lists('value', 'name');
->pluck('value', 'name');
}

/**
Expand Down

0 comments on commit a74dfe1

Please sign in to comment.