user_category; return isset(self::$_USER_CATEGORY[$value]) ? self::$_USER_CATEGORY[$value] : ''; } public function getRegisterTypeTextAttribute($value) { $value = $value ? $value : $this->register_type; return isset(self::$_REGISTER_TYPE[$value]) ? self::$_REGISTER_TYPE[$value] : ''; } public function getStatusTextAttribute($value) { $value = $value ? $value : $this->status; return isset(self::$_STATUS[$value]) ? self::$_STATUS[$value] : ''; } public function getLastVisitTimeTextAttribute($value) { $value = $value ? $value : $this->last_visit_time; return $value ? date('Y-m-d H:i',$value) : ''; } }