first commit
Some checks failed
Build / run (push) Has been cancelled

This commit is contained in:
maher
2025-10-29 11:42:25 +01:00
commit 703f50a09d
4595 changed files with 385164 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
<?php
namespace App\Console\Commands;
use App\Models\Season;
use Illuminate\Console\Command;
class UpdateSeasonsFromRemote extends Command
{
protected $signature = 'seasons:update';
public function handle(): void
{
$seasons = Season::orderBy('updated_at', 'asc')
->with('title')
->limit(50)
->get();
$this->withProgressBar($seasons, function (Season $season) {
if ($season->title) {
$season->maybeUpdateFromExternal($season->title);
}
});
$this->info('Seasons updated');
}
}