v2.x Now supports PHP ^8.2 & Laravel ^10.0

Add Interactions to Your App

The interaction for User like, dislike, and love features for Laravel Application. Easy to use and highly customizable.

Interaction Types

Multiple Ways to React

Support for various interaction types, or create your own custom interactions.

👍

Like

Let users express positive feedback with a simple like interaction.

👎

Dislike

Allow users to express negative feedback when needed.

❤️

Love

Let users show extra appreciation with a love reaction.

Powerful Features

Everything you need to implement user interactions in your Laravel application.

Easy to Use

Easily integrate this package into your Laravel application with minimal setup required.

Advanced Customization

Customize the package to suit your needs. Configure different interaction types and events.

Multiple Interaction Types

Support for likes, dislikes, loves, and more. Or create your own custom interactions.

Quick Start

Get up and running in your Laravel project in minutes.

1 Install via Composer
$ composer require cslant/laravel-like
2 Add Trait to Your Model
// Add to your User model
use CSlant\Like\Traits\Likeable;

class User extends Model
{
    use Likeable;
}
3 Use in Your Code
// Like a post
$post->like($user);

// Dislike a post
$post->dislike($user);

// Love a post
$post->love($user);

// Check if liked
$post->isLikedBy($user);

Ready to add interactions?

Install via Composer and start adding like, dislike, and love features to your Laravel application.