I’m using Laravel & InstantSearch Js for my search.
I want to add the ability for users to “Favourite” or “Remove from Favourites” items in my search.
I achieved this previously when I was using VueInstantSearch.
I’d set my previous search up so that the favouritng aspect did these things
- Allowed users to add items to their favourites
- Allowed users to remove items form their favourites
- Checked if a users was loged in, if not when clicked would simply link them to the login page
- The search would automatically check which items the user had favourited and indicated this on the items while the search updated
An example for that last point is, a filled heart would appear on an item if it was favourited and a non filled heart would appear if not and this would update everytime the search did i.e. if the user moved from page one of the search to page two and then back to page one if they’d favourited an item on page one the search would indicate that.
I was just hoping for if there is a simple way to achieve this with InstantSearch Js because I beilve the way I did it with Vue was not ideal.
I’ve noticed in the documention “Insights” might be the way to go.
I apperacticate the length of this post so thanks a lot in advance for any help.