PHP code example of ashbakernz / laravel-dashboard-spotify-tile

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

    

ashbakernz / laravel-dashboard-spotify-tile example snippets


    'spotify' => [
        'client_id' => env('SPOTIFY_CLIENT_ID'),
        'secret' => env('SPOTIFY_SECRET'),
        'refresh_interval_in_seconds' => 60,
    ]

protected function schedule(Schedule $schedule)
{
    // ...
            $schedule->command(\Ashbakernz\SpotifyTile\FetchDataFromSpotifyCommand::class)->everyMinute();
            $schedule->command(\Ashbakernz\SpotifyTile\RefreshAccessTokenSpotifyCommand::class)->everyFifteenMinutes();
}