private function cleanFileName($name) { $name = Sanitize::underscore($name); $name = str_replace('-', ' ', $name); return ucwords($name); }
/** * Set name of field. Not the same as the html name attribute. * * @param string $name * * @return $this */ public function setName($name) { $this->name = Sanitize::underscore($name); return $this; }