Download the PHP package sumantablog/laravel-review-rateable without Composer
On this page you can find all versions of the php package sumantablog/laravel-review-rateable. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download sumantablog/laravel-review-rateable
More information about sumantablog/laravel-review-rateable
Files in sumantablog/laravel-review-rateable
Package laravel-review-rateable
Short Description Review & Rating system for Laravel
License MIT
Rated 1.00 based on 1 reviews
Informations about the package laravel-review-rateable
Laravel Review Rateable
Review Rateable system for laravel 5. and 6. You can rate your models by:
- Overall Rating
- Customer Service Rating
- Quality Rating
- Friendly Rating
- Price Rating
You can also set whether the model being rated is recommended.
Installation
First, pull in the package through Composer.
And then include the service provider within app/config/app.php
. Note: If you are running Laravel 5.5+ this will be auto loaded for you.
At last you need to publish and run the migration.
Run the migration
Setup a Model
Create a rating
When creating a rating you can specify whether the rating is approved or not by adding approved to the array. This is optional and if left out the default is not approved to allow for review before posting.
Update a rating
Marking review as approved
Delete a rating:
Fetch approved or not approved reviews/ratings for a particular resource
Fetch the average rating:
``
or
``
Get all ratings:
Count total rating:
``
Fetch the rating percentage.
This is also how you enforce a maximum rating value. ``
Note
This is a fork from Trexology's - Original Code - laravel-reviewRateable .
Please note that this code is not used in the original and is not maintained.
All versions of laravel-review-rateable with dependencies
illuminate/database Version ~5.5.0|~5.6.0|~5.7.0|~5.8.0|^6.0|^7.0
illuminate/support Version ~5.5.0|~5.6.0|~5.7.0|~5.8.0|^6.0|^7.0