Skip to content

webbingbrasil/laravel-points

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

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;

    // ...
}
?>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages