pedro-vasconcelos / draw-engine
Draw engine Laravel package for promotion projects.
1.4.0
2021-09-20 21:41 UTC
Requires
- php: ^7.4|^8.0
- illuminate/support: ^8.58
Requires (Dev)
- nunomaduro/collision: ^5.9
- orchestra/testbench: ^6.20
- phpunit/phpunit: ^9.5
- roave/security-advisories: dev-latest
- spatie/laravel-ray: ^1.25
README
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.