protected function formatLabel($label) { $label = $label ?: ucfirst($this->name); return str_replace(['.', '_'], ' ', $label); }