PHP code example of marcusmyers / laravel-dashboard-accuweather-tile

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

    

marcusmyers / laravel-dashboard-accuweather-tile example snippets


// in config/dashboard.php

return [
    // ...
    'tiles' => [
        'accuweather' => [
            'location_key' => '12345',
            'api_key' => env('ACCUWEATHER_API_KEY'),
            'system' => 'Metric',
            'date_format' => 'd/m',
        ]
    ],
];

// in app/console/Kernel.php

protected function schedule(Schedule $schedule)
{
    // ...
    $schedule->command(MarcusMyers\AccuWeatherTile\Commands\FetchAccuWeatherCurrentConditionsCommand::class)->hourly();
    $schedule->command(MarcusMyers\AccuWeatherTile\Commands\FetchAccuWeatherFiveDayForecastCommand::class)->daily();
}