RepositoryPHPINẤn Độ
QI

qirolab/laravel-reactions

Laravel reactions package for implementing reactions (eg: like, dislike, love, emotion, etc) on Eloquent models.

196sao
26fork
0issue
0lượt xem

🎯 Thêm reaction đa dạng (like, dislike, love...) vào Eloquent Model chỉ trong vài bước

Package Laravel Reactions cho phép bạn dễ dàng tích hợp hệ thống reaction phong phú lên bất kỳ model nào trong Laravel mà không cần viết boilerplate.

Laravel Reactions là package do Qirolab phát triển, giúp triển nhật implement nhanh chức năng reaction (like, dislike, love, emotion, v.v.) lên các Eloquent model. Chỉ cần cài qua Composer, chạy migration và áp dụng trait + interface vào model, toàn bộ logic lưu trữ, đếm, kiểm tra và sự kiện đã sẵn sàng.

✨ Điểm nổi bật

  • Cài đặt nhanh: Hỗ trợ Laravel Package Auto-Discovery, chỉ cần composer require là xong.
  • Migration tùy biến: Có thể publish migration ra ngoài để chỉnh sửa trước khi chạy.
  • Hỗ trợ config tùy chọn: Publish file config để tùy chỉnh reaction types và cài đặt khác.
  • Trait & Interface rõ ràng: Dùng Reacts trait cho User và Reactable trait cho model nhận reaction.
  • API phong phú: Hỗ trợ react, remove, toggle, kiểm tra đã react, lấy tóm tắt reaction, danh sách người dùng react.
  • Eloquent Scope: Tìm kiếm model theo người đã reaction bằng whereReactedBy.
  • Event hệ thống: Tự động dispatch OnReaction và OnDeleteReaction khi thay đổi.

💡 Vì sao đáng chú ý

Thay vì phải tự xây dựng bảng reaction, logic lưu trữ và API riêng cho từng model, Laravel Reactions cung cấp một giải pháp chuẩn, tái sử dụng được trên toàn dự án. Phù hợp cho các ứng dụng cần tích hợp nhanhan tính năng like, dislike, yêu thích hoặc các dạng emotion phong phú trên bài viết, sản phẩm, hay bất kỳ nội dung nào.


#Laravel #PHP #Eloquent #OpenSource #TiniX

Dự án tương tự

Khám phá các dự án và mô hình AI khác có sự tương đồng.

RepositoryPHP
cybercog/laravel-love

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?

1.2k
Apr 17, 2026
RepositoryPHP
mongodb/laravel-mongodb

A MongoDB based Eloquent model and Query builder for Laravel (Moloquent)

7.1k
Oct 12, 2026
RepositoryPHP
spatie/laravel-medialibrary

Associate files with Eloquent models

6.2k
Oct 22, 2026
RepositoryPHP
Alimir/wp-ulike

WordPress engagement plugin with Like/Dislike buttons, analytics, and developer hooks. Supports Posts, Comments, WooCommerce, BuddyPress, and bbPress. Fast, GDPR-ready, and used by 80,000+ websites.

109
Oct 17, 2026
RepositoryJavaScript
jlobos/instagram-web-api

🤳 Instagram Private Web API client for Node

1.2k
Jul 28, 2024
RepositoryKotlin
codemybrainsout/smart-app-rate

An Android library that encourages users to rate the app on the Google Play.

671
Feb 13, 2022
RepositorySwift
mezhevikin/AppReview

⭐️ A tiny library for iOS and macOS to request reviews on the App Store. This is a wrapper around the native SKStoreReviewController.

128
Nov 2, 2025
RepositoryTypeScript
kolking/react-native-rating

⭐️ ❤️ 😀 An interactive rating component for React Native that can display ratings using stars, hearts, emojis, or custom symbols.

115
Jul 31, 2026
RepositoryJavaScript
ajwdd/RapidUnlike

💔 Safest method to unlike all liked tweets on Twitter/X.

102
May 19, 2025