pedro-vasconcelos/draw-engine

Draw engine Laravel package for promotion projects.

1.4.0 2021-09-20 21:41 UTC

This package is auto-updated.

Last update: 2024-05-29 04:56:13 UTC


README

Packagist Version GitHub GitHub Workflow Status Packagist Downloads

Introduction

Introduction

This library has all the logic to support the Lucky Draw activity of several projects.

TODO

Install

php artisan vendor:publish --provider="PedroVasconcelos\DrawEngine\DrawServiceProvider" --tag="migrations"
php artisan migrate
php artisan vendor:publish --provider="PedroVasconcelos\DrawEngine\DrawServiceProvider" --tag="config"
# Check the config file and setup the models
# Add the trait `HasPrizeSchedule` to the model to access the schedule
php artisan db:seed --class="DrawsSeeder"

Commands

php artisan app:create-prize-delivery-schedule 1
php artisan app:generate-winner-games 1 2021-09-07

Changelog

Please see CHANGELOG for more information on what has changed recently.

Credits

License

The MIT License (MIT). Please see License File for more information.