2017 © Pedro Peláez
 

library reviews

This package is meant to create a nice review

image

westaddy/reviews

This package is meant to create a nice review

  • Friday, August 26, 2016
  • by westaddy
  • Repository
  • 0 Watchers
  • 0 Stars
  • 187 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

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);

The Versions

26/08 2016

dev-master

9999999-dev

This package is meant to create a nice review

  Sources   Download

MIT

by Abdulsalam