Vacatures en beelden toegevoegd

This commit is contained in:
2021-10-05 20:06:01 +02:00
parent 6408a4e417
commit d1b10e558d
8 changed files with 144 additions and 6 deletions

View File

@@ -27,7 +27,7 @@ class Kernel extends ConsoleKernel
*/
protected function schedule(Schedule $schedule)
{
$this->API_URL = env('API_URL', 'http://api.6fm.nl/');
$this->API_URL = env('API_URL', 'https://api-dev.nhgooi.nl/');
// Update latest news (3 items)
$schedule->call(function() {
@@ -55,6 +55,11 @@ class Kernel extends ConsoleKernel
$schedule->call(function() {
Storage::disk('local')->put('blogs.json', file_get_contents($this->API_URL . 'blog/overzicht'));
})->everyMinute();
// Update featured images
$schedule->call(function() {
Storage::disk('local')->put('beelden.json', file_get_contents($this->API_URL . 'beelden/overzicht'));
})->everyMinute();
}
/**