Usage

Reaction Types

ReactionType model describes how Reacter reacted to Reactant.
By default there are 2 types of reactions Like and Dislike.
Each Like adds +1 to reactant's total weight while Dislike type subtract -1 from it.

Get reactable reactions total weight

Eager Loading

When accessing Eloquent relationships as properties, the relationship data is "lazy loaded".
This means the relationship data is not actually loaded until you first access the property.
However, Eloquent can "eager load" relationships at the time you query the parent model.
Eager loading alleviates the N + 1 query problem.
More details read in official Laravel documentation.