protected function key($field) { if (method_exists($this->model, 'getTrueKey')) { return $this->model->getTrueKey($field); } return $field; }