protected function clean_type($type) { $remove = array('_', '\\', 'CarbonFields', 'Field'); $clean_class = str_replace($remove, '', $type); return $clean_class; }