PHP code example of jonlynch / laravel-dashboard-uk-tide-tile

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

    

jonlynch / laravel-dashboard-uk-tide-tile example snippets


// in config/dashboard.php

return [
    // ...
    tiles => [
         'tides' => [
            'api_key' => env ('TIDE_API_KEY'),
            'station_id' => '0435',
            'location' => 'St Bees'
        ],
    ]
 php
// in app\Console\Kernel.php

protected function schedule(Schedule $schedule)
{
    $schedule->command(\JonLynch\TideTile\Commands\FetchTidesDataCommand::class)->hourly();
}