/** * Get an array with all possible types. */ public function allTagTypes() { $tagTypes = []; foreach (TagType::values() as $value) { $tagTypes[(string) $value] = trans("back-tags.types.{$value}"); } return collect($tagTypes)->sort(); }