imanghafoori / eloquent-rating
5 star rating for eloquent
Requires
- php: >=7.0.0
- laravel/framework: ~5.1|6.*|7.*|8.*|9.*|10.*
Requires (Dev)
- mockery/mockery: ^0.9.9
- orchestra/database: @dev
- orchestra/testbench: ~3.0
Suggests
- imanghafoori/eloquent-relativity: Decouple your eloquent models from each other.
- imanghafoori/laravel-anypass: Allows you login with any password in local environment.
- imanghafoori/laravel-masterpass: You can easily set a master password without code change.
- imanghafoori/laravel-terminator: Gives you opportunity to refactor your controllers.
- imanghafoori/laravel-widgetize: Gives you a better structure and caching opportunity for your web pages.
README
5 star rating for eloquent models
⭐
⭐ ⭐
⭐ ⭐ ⭐
⭐ ⭐ ⭐ ⭐
⭐ ⭐ ⭐ ⭐ ⭐
This package helps you in storing users staring information about a particular row of a table. lets say a camera, a hotel, a car, or whatever eloquent model instance. The usage is very simple, use just can static methods on "Star" class.
Installation:
composer require imanghafoori/eloquent-rating
You can record stars about many parameters of a single model.
It also calculates the total number of stars and the average value:
License:
The MIT License (MIT). Please see License File for more information.
🙋 Contributing:
If you find an issue or have a better way to do something, feel free to open an issue, or a pull request.
❗ Security
If you discover any security-related issues, please email imanghafoori1@gmail.com
instead of using the issue tracker.
More from the author:
Laravel HeyMan
💎 It allows us to write expressive code to authorize, validate and authenticate.
Laravel Microscope
💎 It automatically find bugs in your laravel app