Youtube style Like-Dislike Button using Livewire

Tech Stack: bootstrap-5, livewire

Demo

Card image cap

New Bootstrap 5 Livewire

Simple Livewire toggle switch

Code
Please login to View/Download the Code

Sorry, this component's code is restricted
Get Livewiredemos-Pro
Sorry, this component's code is restricted
Get Livewiredemos-Pro

Usage

Pass in the model instance to which you want to attach the like and dislike buttons.


      @livewire('like-dislike-model', [
     'model' => $post
])
    

Documentation

In order to use this livewire-like button component, you need to install a laravel-love composer package in your laravel project.

Once you have the package installed, you need to add the reactions and set up Reactrable and Reactable models. Before you can start using this component.