Giter VIP home page Giter VIP logo

laravel-review-rating's People

Contributors

dsbilling avatar faisuc avatar kwidoo avatar timoladoyinbo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

laravel-review-rating's Issues

avarageRating fails on model

´´´
SQLSTATE[42000]: Syntax error or access violation: 1140 Mixing of GROUP columns (MIN(),MAX(),COUNT(),...) with no GROUP columns is illegal if there is no GROUP BY clause (SQL: select ROUND(AVG(rating), 1) AS averageRating from reviews where reviews.model_id = 2 and reviews.model_id is not null and reviews.model_type = App\Models\Resource order by id desc)
´´´

PHP 8.0.12
Laravel 8.78.1

Not install in Laravel 11 (Your requirements could not be resolved to an installable set of packages.)

composer require digikraaft/laravel-review-rating
./composer.json has been updated
Running composer update digikraaft/laravel-review-rating
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

Problem 1
- digikraaft/laravel-review-rating[v1.0.0, v2.0.0, ..., v2.0.1] require php ^7.4 -> your php version (8.2.7) does not satisfy that requirement.
- digikraaft/laravel-review-rating v2.1.0 requires php ^7.4|8.0.* -> your php version (8.2.7) does not satisfy that requirement.
- digikraaft/laravel-review-rating v2.2.0 requires laravel/framework ^8.0 -> found laravel/framework[v8.0.0, ..., v8.83.27] but it conflicts with your root composer.json require (^11.0).
- digikraaft/laravel-review-rating[v2.3.0, ..., v2.3.1] require laravel/framework ^8.0|^9.0 -> found laravel/framework[v8.0.0, ..., v8.83.27, v9.0.0, ..., v9.52.16] but it conflicts with your root composer.json require (^11.0).
- digikraaft/laravel-review-rating v3.0.0 requires laravel/framework ^10.0 -> found laravel/framework[v10.0.0, ..., v10.48.10] but it conflicts with your root composer.json require (^11.0).
- Root composer.json requires digikraaft/laravel-review-rating * -> satisfiable by digikraaft/laravel-review-rating[v1.0.0, v2.0.0, ..., v2.3.1, v3.0.0].

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
You can also try re-running composer require with an explicit version constraint, e.g. "composer require digikraaft/laravel-review-rating:*" to figure out if any version is installable, or "composer require digikraaft/laravel-review-rating:^2.1" if you know which you need.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.

Laravel 10

Are we gonna se support for laravel 10 with this package anytime soon?

Using $this when not in object context

I installed the "laravel-review-rating" package correctly, but I have a problem when using the review() method in my controller I get this error: "Use $this when it is not in the context of the object", after tracing the error I found result of this line numbered 37 from the HasReviewRating attribute, "return $this->createReview($review, $author, $rating, $title);",
Please can anyone help me?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.