How to filter what suggestions SpatieTagsInput shows?
I want to prevent user-generated tags from being suggested in my
SpatieTagsInput
components. The obvious reason being that a malicious user might spam the database with inappropriate tags which would then be suggested.
It doesn't seem as straightforward as simply adding an approved
boolean column to my Spatie tags
table and then defining a scope.2 Replies
If you don't want users to create new tags I would use another component multiselect for example to select the possible tags.
->suggestions([])