Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/Query/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -1264,9 +1264,11 @@ public function lists($column, $key = null)
// then we can associate those values with the column if it was specified
// otherwise we can just give these values back without a specific key.
$results = $this->get($columns);

$results = array_change_key_case($results, CASE_UPPER);

$values = array_map(function ($row) use ($columns) {
return $row[$columns[0]];
return $row[strtoupper($columns[0])];
}, $results);

// If a key was specified and we have results, we will go ahead and combine
Expand Down