public function columnFormat($attribute, $model, $generator) { $key = $this->findValue($this->getModelKey($attribute, $model), $this->columnFormats); if ($key) { return $this->columnFormats[$key]($attribute, $model, $generator); } }