Download the PHP package beksos/reviewmaster without Composer
On this page you can find all versions of the php package beksos/reviewmaster. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download beksos/reviewmaster
More information about beksos/reviewmaster
Files in beksos/reviewmaster
Package reviewmaster
Short Description A Laravel Package for User Review on Models, like Product review for ecommerce systems.
License MIT
Informations about the package reviewmaster
Review-Ratings: Laravel Package
This package is a fork of the original package https://github.com/dgvai/laravel-user-review by Jalal Uddin Github, with some improvments.
This package uses a trait for a model which can be reviewable by users (you can specify user model) and give starred/point ratings and only one reply can come from admin as a support response. (like Google playstore review system). This package can be used with any projects like Ecommerce, Shop, Store, etc models.
Requirements
- PHP >= 7.1
- Laravel >= 5.6
Installation
using COMPOSER
composer require beksos/reviewmaster
Configurations
Export the assets (migration and config)
php artisan vendor:publish --provider="Beksos\Review\ReviewerServiceProvider"
Run the migration
php artisan migrate
Clear configuration cache
php artisan config:cache
Usage
Add Reviewable
trait to the model where you want users to give review and ratings. As example for Product Model
Specify the user model in the config/reviewmaster file, by default it uses User.
Creating review for a product:
Description
makeReview(object $user, int $rating [, string $review])
Returns
Object instance of the review
Example
Review attributes
Till now that's it! Updates will bring new features soon InshaAllah.