34 lines
658 B
PHP
34 lines
658 B
PHP
|
<?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!');
|
||
|
}
|
||
|
}
|