Tags stored value lower case without spaces

Is there a way to store the typed in values of a tags field so they are url friendly e.g hypens instead of spaces and lowercase ?

  filters:
          label: Filters
          type: tags

Or could / should this be done in the controller ?

  $tags = $projects->pluck('tags', ',', true);
 $projects = $projects->filterBy('tags',$tag, ',');

You could urlencode/urldecode your tags

see also: Tags with spaces - #6 by texnixe

This wouldn’t make them lowercase those.

An alternative would be to sluggify them, you would have to adapt the filter though.