Configure the visible collections
Disable a collection
Persist across sessions
flex_theme_search_collections table and bounded JSON references. You can choose another Laravel database connection with new DatabaseSearchCollectionStore(connection: 'search'); that connection must have the required table.
Database mutations use a scoped cache lock. On multiple application nodes, configure a shared lock-capable cache store through FLEX_THEME_SETTINGS_CACHE_STORE, for example Redis, so concurrent favorite changes share the same lock backend.
Implement a store
AtomicSearchCollectionStore as well:
[new references, operation result]; persist the bounded references atomically and return the operation result. collections(null) restores the default session store.