VANA/VANA-php/app/Console/Commands/SrgssrSaveLatestArenaEpisod...

34 lines
658 B
PHP
Raw Permalink Normal View History

2024-10-11 11:20:39 +02:00
<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
use App\Srgssr\Episode;
class SrgssrSaveLatestArenaEpisodes extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'srgssr:save-latest';
/**
* The console command description.
*
* @var string
*/
protected $description = 'Get and save the 10 latest Episodes.';
/**
* Execute the console command.
*/
public function handle()
{
$ep = new Episode;
$ep->saveLatestArenaEpisodes();
$this->info('Aggregation completed!');
}
}