webbingbrasil/laravel-points

A basic points implementation for gamification system in laravel.

Installs: 1 046

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 2

Forks: 0

Open Issues: 0

pkg:composer/webbingbrasil/laravel-points

1.0.1 2024-02-07 18:32 UTC

This package is auto-updated.

Last update: 2025-10-07 22:07:21 UTC


README

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;

    // ...
}
?>