Helpful votes.
Install the complete review experience, choose an interface, and configure customer and team workflows.
← All Pro topicsHelpful
Install the optional vote table, then enable voting:
php artisan vendor:publish --tag=review-rateable-pro-helpful-votes-migrations
php artisan migrate
'helpful_votes' => [
'enabled' => true,
'ability' => null,
'changes_per_minute' => 30,
],
The list adds helpful counts and Most helpful sorting. Authenticated readers can add or withdraw one vote on another author's published review. Authors cannot vote on themselves, and pending/hidden reviews cannot receive votes. Guests see counts and a sign-in prompt.
An optional ability receives the target and review for additional eligibility checks. Duplicate requests are idempotent, not blind toggles; actual changes consume the throttle.
use Codebyray\ReviewRateablePro\Services\HelpfulVoteManager;
$votes = app(HelpfulVoteManager::class);
$votes->setHelpful($review);
$votes->setHelpful($review, false);
$reviews = $product->reviews()
->where('approved', true)
->withCount('proHelpfulVotes')
->get();
Hiding retains votes; hard deletion cascades them. Deleting a user does not automatically erase their historical votes. Apply your application's retention rules. Avoid exposing voter identities in public APIs.