This package counts the number of gems in your game.
Add this lines to your composer.json
{
....
"repositories": [
....
{
"url": "https://github.com/farajzadeh/gems-counter.git",
"type": "git"
}
],
}
Then run this command
$ composer require farajzadeh/gems-counter "@dev"
Just add HasGems
trait to your user model.
Then get number of user gems by gems_count
attribute
and create transaction with createTransaction($amount, $tag)
function.
composer test