laravel-review-rateable
laravel-review-rateable copied to clipboard
Review & Rating System For Laravel 6, 7, 8 & 9
 I am using beyondcode/laravel-query-detector it warns me of the upper image. how I can prevent the egger loading. Please help.
Can we get the average rating of all the Posts like ``` Post::averageRating(2) ```
Hello, guys, we are using your package and when using this method getApprovedRatings() with two different models we are getting a wrong result for example like this.  Here you...
Trying to implement this package on the user class which extends Authenticatable throws an error of "undefined type". ```class User extends Model implements ReviewRateable``` Works but ```class User extends Authenticatable...
Why the update from this to the one below model Rating?! It breaks all the code and accessing -> reviewrateable in DATATABLES always returns null with the previous update. ```php...
This is an automated pull request from [Shift](https://laravelshift.com) to update your package code and dependencies to be compatible with Laravel 11.x. **Before merging**, you need to: - Checkout the `l11-compatibility`...
Fix issue https://github.com/codebyray/laravel-review-rateable/issues/50 ```json { "message": "SQLSTATE[42S22]: Column not found: 1054 Unknown column 'reviewable_type' in 'field list' (Connection: mysql, SQL: select distinct `reviewable_type` from `reviews`)", "exception": "Illuminate\\Database\\QueryException", "file": "/Users/amrokhaled/Code/damg/api/vendor/laravel/framework/src/Illuminate/Database/Connection.php", "line":...
`$table->morphs('reviewrateable');` creating two fields in table `reviewrateable_type` and `reviewrateable_id` https://github.com/codebyray/laravel-review-rateable/blob/master/database/migrations/create_reviews_table.php.stub#L22 but in rating model use ` $this->morphTo(__FUNCTION__, 'reviewable_type', 'reviewable_id');` for create relation - is not identical in database table https://github.com/codebyray/laravel-review-rateable/blob/master/src/Models/Rating.php#L35...
The features of this package look good! But, I feel unfortunate as I implement UUID as the primary key in all tables in my Laravel project. Hope this can be...