Download the PHP package kilobyteno/laravel-user-guest-like without Composer
On this page you can find all versions of the php package kilobyteno/laravel-user-guest-like. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download kilobyteno/laravel-user-guest-like
More information about kilobyteno/laravel-user-guest-like
Files in kilobyteno/laravel-user-guest-like
Package laravel-user-guest-like
Short Description A Laravel package to allow guests and users to like models
License MIT
Homepage https://github.com/kilobyteno/laravel-user-guest-like
Informations about the package laravel-user-guest-like
Laravel User Guest Like
A Laravel package to allow guests and users to like models.
Installation
You can install the package via composer:
Publish the package:
Or you can publish manually:
The content of the config file that will be published to config/user-guest-like.php
:
Usage
Add the HasUserGuestLike
trait to the model:
Like a model as user (or guest):
Dislike a model as user (or guest):
Check if a user has liked a model (or guest has liked a model):
Display the number of likes for a model:
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Kilobyte AS
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-user-guest-like with dependencies
spatie/laravel-package-tools Version ^1.15.0
illuminate/contracts Version ^8.0|^9.0|^10.0