/** * Get an array with the values of a given column. * * @param string $column * @param string $key * @return array */ public function lists($column, $key = null) { $results = $this->query->lists($column, $key); if ($this->model->hasGetMutator($column)) { foreach ($results as $key => &$value) { $fill = array($column => $value); $value = $this->model->newFromBuilder($fill)->{$column}; } } return $results; }