webbingbrasil/laravel-points
Points
A basic points implementation for gamification system in laravel
Installation
Install package via composer
composer require "webbingbrasil/laravel-points=1.0.0"
Next, if you are using Laravel prior to 5.5, register the service provider in the providers array of your config/app.php configuration file:
WebbingBrasil\Points\Providers\PointServiceProvider::class,
To get started, you'll need to publish the vendor assets and migrate:
php artisan vendor:publish --provider="WebbingBrasil\Points\Providers\PointServiceProvider" && php artisan migrate
Usage
Add our HasPoints trait to your model.
<?php namespace App\Models;
use WebbingBrasil\Points\Traits\HasPoints;
class User extends Model
{
use HasPoints;
// ...
}
?>
Related Packages
doctrine/dbal
Powerful PHP database abstraction layer (DBAL) with many features for database s...
631,580,251
9,707
laravel/serializable-closure
Laravel Serializable Closure provides an easy and secure way to serialize closur...
404,034,618
608
nunomaduro/collision
Cli error handling for console/command-line PHP applications.
384,821,166
4,658