Jump to Content
Laravel LoveDocumentationGit Repository
Documentation
DocumentationGit RepositoryLog InLaravel Love
Documentation
Log In
ReactionTotal
These docs are for v7. Click to read the latest docs for v9.

Preface

  • Introduction
  • Features
  • System Design
  • Implementation Highlights

Installation

  • System Requirements
  • Installation Instructions

Setup

  • Manage Reaction Types
  • Setup Reacterable
  • Setup Reactable

API

  • ReactionType
  • Reacterable
  • Reacter
  • Reacter Facade
  • Reactable
  • Reactant
  • Reactant Facade
  • ReactionCounter
  • ReactionTotal
  • Reactable Ordering
  • Reactable Filtering
  • Events

Performance

  • Eager Loading
  • Aggregation Queue

Customization

  • Migration Customization
  • Models Registration
  • Extending Functionality
  • Custom Setup Migrations
  • Custom Database Storage

Development

  • Contribution Guide
  • Testing
  • Contributors

Troubleshooting

  • Recount Statistics

Meta

  • Security
  • Alternatives
  • License
  • CyberCog
Powered by 

ReactionTotal

Suggest Edits

Reaction total is an aggregated sum of all counters.

Get reactions total count

$totalWeight = $reactionTotal->getCount();

Get reactions total weight

$totalWeight = $reactionTotal->getWeight();

📘

If Like has weight=1 and Dislike has weight=-1 then 3 likes and 5 dislikes will produce -2 total weight.

Updated over 6 years ago


  • Table of Contents
    • Get reactions total count
    • Get reactions total weight