trexology / laravel-pointable Goto Github PK
View Code? Open in Web Editor NEWPoint system for Laravel 5
License: MIT License
Point system for Laravel 5
License: MIT License
laravel 5.5
Question: I need to some modifications
example: I give user 300 points on birth date (for 5 days period)
than i give to user some another points and etc
Give me some advice, help, interesting thoughts
If I make more transactions in the same second the wrong 'mother' transaction is chosen. I've created a fix:
->orderBy('id','desc')
in both the Model and the Trait
The lists method on the Collection, query builder and Eloquent query builder objects has been renamed to pluck in L5.3
Could you please update accordingly?
Hey guys, please if there a way in which we can remove credit from a user using this package?
Hi,
there is an error in your package on line 96 Pointable.php trait.
return (new Transaction())->addTransaction($this, $amount, $message, $data = null);
This way $data is always null. It shoud be
return (new Transaction())->addTransaction($this, $amount, $message, $data);
Regards,
Vladimir
After initial setup, when using the example to add points to a user an ErrorException occurs in Transaction.php, line 60
Object of class Illuminate\Support\Collection could not be converted to int
I believe getCurrentPoints
function should return $currentPoint[0]
(if found).
Hi is there any example code for this ? On how to implement the functions ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.