Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laravel Love Laravel Package

cybercog/laravel-love

Add reactions, likes, votes, and other “feelings” to any Eloquent model with Laravel Love. Flexible, enterprise-ready system inspired by GitHub/Facebook/Slack reactions. Includes migrations and APIs to make models reactable in minutes.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Social Engagement Features: Enables rapid implementation of reaction systems (likes, dislikes, custom reactions) for content-driven products (e.g., blogs, forums, marketplaces, or social platforms). Reduces dev time for features like GitHub-style reactions or Reddit-style voting.
  • User-Generated Content (UGC) Platforms: Critical for platforms where user interaction metrics (e.g., "most-liked posts") drive discovery or monetization (e.g., Medium claps, YouTube likes).
  • Gamification: Supports leaderboards, upvoting systems, or reputation scores by integrating reaction aggregates (e.g., "top contributors this week").
  • Build vs. Buy: Buy for teams lacking backend resources to build a scalable reaction system from scratch. Build only if needing highly customized logic (e.g., multi-tiered voting with complex business rules).
  • Roadmap Prioritization: High-value for MVP launches or A/B testing engagement features (e.g., "Let’s add reactions to comments in 2 weeks").
  • Enterprise Scalability: Designed for high-traffic apps with features like:
    • Queue-based reaction counting (avoids N+1 queries).
    • Configurable table names (multi-tenant support).
    • Rate-limiting (e.g., prevent spam reactions).

When to Consider This Package

Adopt When:

  • Your app uses Laravel 9–13 and PHP 8.0–8.5 (check compatibility).
  • You need reactions/engagement features in <1 day (e.g., "Add likes to posts by EOD").
  • Your models are Eloquent-based (supports polymorphic relationships out of the box).
  • You require scalable aggregates (e.g., "Show top 10 most-liked articles") without manual query optimization.
  • Your team lacks backend expertise for real-time reaction counting (handles this via queues/jobs).
  • You need custom reaction types (e.g., "🔥", "💔", or numeric ratings like 1–5 stars).

Look Elsewhere If:

  • You’re using non-Laravel frameworks (e.g., Symfony, Django).
  • You need real-time WebSocket updates for reactions (this is async; consider Laravel Echo + Pusher).
  • Your reaction logic is extremely complex (e.g., weighted voting with dynamic rules; may need custom code).
  • You require offline-first sync (e.g., mobile apps with local reaction caching).
  • Your app uses non-SQL databases (e.g., MongoDB; this is SQL-only).
  • You need multi-language support for reactions (e.g., emoji localization; this is emoji-agnostic but requires UI layer handling).

How to Pitch It (Stakeholders)

For Executives:

"Laravel Love lets us ship engagement features (like likes, reactions, or votes) in hours instead of weeks—without hiring senior backend engineers. It’s battle-tested (used by enterprise apps) and handles scale automatically. For example:

  • Add Reddit-style upvotes to forum posts by Friday.
  • Launch a ‘Top Picks’ section for user-generated content with zero backend risk.
  • A/B test reaction types (e.g., ‘👍’ vs. ‘❤️’) without rewriting core logic. It’s MIT-licensed, actively maintained, and saves 3–5 dev weeks per feature. ROI: Faster iteration on viral loops."

For Engineering:

"This package gives us:

  • 90% less boilerplate for reaction systems (no more writing increment()/decrement() queries manually).
  • Built-in scalability: Uses Laravel queues to avoid locking tables during high traffic (e.g., Black Friday sales).
  • Flexible design:
    • Supports custom reaction types (e.g., Post::reactTo($user, '🚀')).
    • Aggregates (e.g., Post::reactions()->count()) are cached and recalculated asynchronously.
    • Polymorphic: Works with any Eloquent model (e.g., Post, Comment, Product).
  • Enterprise-ready:
    • Configurable database tables (multi-tenant support).
    • Rate-limiting (e.g., RateOutOfRange exceptions for spam prevention).
  • Dev experience:
    • Artisan commands to scaffold reactions (php artisan love:setup-reactable).
    • Dockerized test environment for CI/CD.
  • Tradeoffs:
    • Async processing means reactions aren’t instant (but scales to millions of users).
    • Emoji/UI layer is your responsibility (package handles backend logic only)."

For Product Managers:

"Key questions to validate:

  1. Does this solve a user pain point? (e.g., "Users beg for likes on our Q&A posts.")
  2. Will it drive metrics? (e.g., "Reactions increase time-on-page by 20%.")
  3. How will we measure success? (e.g., "Top 10% of posts by reactions get featured.") Proposal:
  • Phase 1: Add reactions to [X model] in 2 days (uses love:setup-reactable).
  • Phase 2: Add aggregates to leaderboards (e.g., ‘Most Helpful Users’).
  • Phase 3: A/B test reaction types (e.g., ‘👍’ vs. ‘❤️’). Alternatives considered: Custom build (3 weeks, higher risk) or no reactions (missed engagement opportunities)."*

Next Steps:

  • Tech Spike: Run composer require cybercog/laravel-love + php artisan love:setup-reactable Post to test with a prototype model.
  • Architecture Review: Confirm compatibility with your Laravel version and database (e.g., MySQL/PostgreSQL).
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
hamzi/corewatch
minionfactory/raw-hydrator
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours
renatovdemoura/blade-elements-ui
devgeek/beacon-admin
benjamin-rqt/data-watcher-bundle
atriumphp/atrium
sandermuller/package-boost-laravel
sandermuller/boost-skills
redaxo/core
yusufgenc/filament-api-forge
l3aro/rating-star-for-filament
leek/filament-subtenant-scope