Skip to content

Guest reactions #23

Answered by antonkomarev
MWStudio4 asked this question in Q&A
Discussion options

You must be logged in to vote

Since v6 any model could act as Reacter. That means you can create Guest Eloquent model and make it Reacterable.

After authentication you can collect all guest's reactions and change their reacter_id on authenticated user's reacter id. Just don't forget to check if model was already reacted by user's reacter. Counters of affected reactants should be rebuilt.

Replies: 8 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by antonkomarev
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #23 on October 03, 2020 06:50.