Laravel-rating
Laravel-rating copied to clipboard
Currently ratingsAvg() was taking likes & dislikes into consideration
Currently ratingsAvg() was taking likes & dislikes into consideration when calculating the average rating for a specific model which is wrong.
I had to change it manually and I think I have to do the same with the votes. you need to add the where clause and also return the result of avg with two decimal places