PHP code example of leemason / polycast

1. Go to this page and download the library: Download leemason/polycast 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/ */

    

leemason / polycast example snippets


LeeMason\Polycast\PolycastServiceProvider::class,

'polycast' => [
    'driver' => 'polycast',
    'delete_old' => 2, //this deletes old events after 2 minutes, this can be changed to leave them in the db longer if 

php artisan vendor:publish --tag=public --force

php artisan migrate --path=vendor/leemason/polycast/migrations
javascript
<script src=" echo url('vendor/polycast/polycast.min.js');
javascript
<script src=" echo url('vendor/polycast/polycast.min.js');