Comments (1)
You can give points to another user by just using the method addPoint() it will not maintain the history of the points but will get the job done. So you can call this in you method. Eg: on liking a post give points to the user who created the post.
$user->addPoint($point = 1);
where $user
can be the user who you would like to give the point.
from laravel-gamify.
Related Issues (20)
- Give points when badge is earned? HOT 1
- Feature: Morph support for Payee HOT 2
- Is this package still being maintained? HOT 2
- Can we extend the badge qualifier HOT 1
- Payee is not getting the user parameter HOT 3
- Laravel 8 Support HOT 1
- payee() method must return a model which will get the points HOT 3
- #ASK - How to call Notifications Got Awards
- From postaman ok, from webapp error HOT 2
- Work with the specific payee (not subject's user) HOT 4
- Use without Badge If your app doesn't need Badges you should just use HasReputations trait instead of Gamify. HOT 1
- Remove ShouldBroadcast from ReputationChanged event HOT 1
- Laravel octane
- Support Laravel 9.0 ? HOT 1
- How can I turn off the Info Logging HOT 1
- Populating meta column
- Can't give point to User HOT 1
- Leaderboard Position
- undoPoint() is not working HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laravel-gamify.