PHP code example of rubenvanerk / artisan-window

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

    

rubenvanerk / artisan-window example snippets


class Example extends Command
{
    use \RubenVanErk\ArtisanWindow\Traits\HasWindows;
    
    public function handle()
    {
        $this->window('Never Gonna Give You Up', 5, function () {
            // ...
            $this->info('Never gonna give you up');
            $this->info('Never gonna let you down');
            $this->info('Never gonna run around and desert you');
            $this->info('Never gonna make you cry');
            $this->info('Never gonna say goodbye');
            $this->info('Never gonna tell a lie and hurt you');
            // ...
        })    
    }    
}