westaddy / reviews
This package is meant to create a nice review
Installs: 199
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/westaddy/reviews
This package is not auto-updated.
Last update: 2025-10-23 07:14:20 UTC
README
Installation
Get the package through Composer.
Open composer and require the following:
"require": {
"westaddy/reviews":"dev-master",
},
And then include the service provider within app/config/app.php.
'providers' => [
Westaddy\Reviews\AzzonReviewServiceProvider::class
];
At last you need to publish and run the migration.
php artisan vendor:publish --provider=Westaddy\Reviews\AzzonReviewServiceProvider && php artisan migrate
Setup a Model
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Post extends Model implements Rating
{
use \Westaddy\Reviews\Review;
}
Create a rating
Post::createReview($post_id,$comment,$rating,$ip,$user_id);
Get all ratingd
Post::getReviews($post_id);