PHP code example of roelgonzalez / laravel-dashboard-quote-of-the-day-tile

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

    

roelgonzalez / laravel-dashboard-quote-of-the-day-tile example snippets


// in config/dashboard.php

return [
    // ...
    'tiles' => [
        'quote_of_the_day' => [
            'max_character_length' => 70, // null for no limit
            'refresh_interval_in_seconds' => 3600,
        ],
    ],
];

// in app/console/Kernel.php

protected function schedule(Schedule $schedule)
{
    // ...
    $schedule->command(\RoelGonzalez\QuoteOfTheDayTile\FetchQuoteOfTheDayDataCommand::class)->dailyAt('05:00');
}