PHP code example of solitweb / laravel-dashboard-soundtrack-tile

1. Go to this page and download the library: Download solitweb/laravel-dashboard-soundtrack-tile 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/ */

    

solitweb / laravel-dashboard-soundtrack-tile example snippets


// in config/dashboard.php

return [
    // ...
    'tiles' => [
        'soundtrack' => [
            'email' => env('SOUNDTRACK_EMAIL'),
            'password' => env('SOUNDTRACK_PASSWORD'),
            'sound_zone' => env('SOUNDTRACK_SOUND_ZONE'),
            'refresh_interval_in_seconds' => 60,
        ],
    ],
];

// in app/console/Kernel.php

protected function schedule(Schedule $schedule)
{
    // ...
    $schedule->command(\Solitweb\SoundtrackTile\FetchDataFromApiCommand::class)->everyMinute();
}
bash
php artisan vendor:publish --provider="Solitweb\SoundtrackTile\SoundtrackTileServiceProvider" --tag="dashboard-soundtrack-tile-views"