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

Next.js Basics for Laravel Developers

11 lessons
58 min

Queues in Laravel 13

18 lessons
1 h 12 min read

How to Build Laravel 13 API From Scratch

30 lessons
1 h 23 min

We'd Love Your Feedback

Tell us what you like or what we can improve

Feel free to share anything you like or dislike about this page or the platform in general.