Feature request: Remove rating
rtrudel opened this issue · comments
It would be useful to allow a user to remove their rating by sending null
, false
or -1
in along the rate()
method. This should delete the corresponding row in DB or at least adapt the count and average by ignoring zero ratings.
ex:
$user->rate($model, null);
or by adding a new method:
ex:
$user->unrate($model);
In most UI, it's possible to remove the stars, but as now, it's only possible to zero rate, distorting average.
Thank you in advance!
Hey, thanks for taking the time to write this issue, this seems like a valid request and i'm working on enhancing this package.
A PR for this would be more than welcome.
Thanks.
Added on v2.0 😄