PHP code example of pedro-vasconcelos / draw-engine

1. Go to this page and download the library: Download pedro-vasconcelos/draw-engine library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

pedro-vasconcelos / draw-engine example snippets

bash
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"
bash
php artisan app:create-prize-delivery-schedule 1
php artisan app:generate-winner-games 1 2021-09-07