Skip to main content
Back to packages
1,198 GitHub stars

cybercog/laravel-love

View on GitHub

Description

Add Social Reactions to Laravel Eloquent Models. It lets people express how they feel about the content. Fully customizable Weighted Reaction System & Reaction Type System with Like, Dislike and any other custom emotion types. Do you react?

Features

  • Fully customizable types of reactions.
  • Any model can react to models and receive reactions at the same time.
  • Reactant can has many types of reactions.
  • Reacter can add many reactions to one reactant.
  • Reacter can react with custom float rate value.
  • Reaction counters with detailed aggregated data for each reactant.
  • Reaction totals with total aggregated data for each reactant.
  • Works with any database id column types.
  • Sort reactable models by reaction type count.
  • Sort reactable models by reactions total count.
  • Sort reactable models by reactions total weight.
  • Events for added & removed reactions.
  • Artisan command love:recount {model?} {type?} to re-fetch reactions stats.
  • Artisan command love:reaction-type-add to add reaction types.
  • Artisan command love:setup-reacterable to register Reacterable models.
  • Artisan command love:setup-reactable to register Reactable models.
  • Customizable database storage.

Recent Courses on Laravel Daily