public function getMessageTypeAttribute($value) { return array_search_null(get_int($value), static::MESSAGE_TYPES); }