Download the PHP package broqit/laravel-reactions without Composer
On this page you can find all versions of the php package broqit/laravel-reactions. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package laravel-reactions
Laravel Reactions
A Laravel plugin that allows users to leave reactions on posts using Livewire, similar to the functionality in spatie/laravel-comments
.
Features
- Flexible Reaction Types: Define multiple reaction types with custom names and icons through the configuration file.
- User and Guest Reactions: Allow both authenticated users and guests to leave reactions. Configurable to restrict reactions to only users, only guests, or both.
- Customizable Reaction Limits: Set the maximum number of reactions a user or guest can leave on a single post through the configuration file.
- Dynamic Reaction Display: Utilize a Livewire component to dynamically display reaction buttons with real-time updates.
- Remove Reactions: Users and guests can remove their reactions. Configurable to set a time limit within which reactions can be removed.
- Reaction Count Display: Display the count of each reaction type for a given post.
- Total Reaction Count: Retrieve the total count of reactions for a given post.
- Grouped Reaction Count: Retrieve a count of all reactions for a given post, grouped by reaction type.
- Custom User Model: Easily configure the user model to be used for reactions.
- Easy Integration: Simple integration with any Laravel model using the HasReactions trait.
Example configuration for reaction types:
Installation
Database Migration
Vendor publishing
Style publishing
Configuration
You can optionally publish the config file with:
Usage
Add the HasReactions trait to your model:
Add the Livewire component to your view:
Retrieve reaction counts:
All versions of laravel-reactions with dependencies
PHP Build Version
Package Version
The package broqit/laravel-reactions contains the following files
Loading the files please wait ....