New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

webbingbrasil/laravel-points

A basic points implementation for gamification system in laravel.
1,046 1
Install
composer require webbingbrasil/laravel-points
Latest Version:1.0.1
PHP:>=5.6.4|^7.0
Laravel:5 – 10
License:MIT
Last Updated:Feb 7, 2024
Links: GitHub  ·  Packagist
Maintainer: dmandrade

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...

651,963,193 9,701
laravel/framework

The Laravel Framework.

604,216,237 34,982
laravel/tinker

Powerful REPL for the Laravel framework.

518,004,183 7,444
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

435,097,283 607
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

407,699,310 4,663

Version History

Version Released PHP Laravel License
1.0.1 >=5.6.4|^7.0 >=5.3 MIT