seo fixes
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace App\Console\Commands;
|
||||
|
||||
use App\Models\Tool;
|
||||
use Illuminate\Console\Command;
|
||||
|
||||
class MirrorToolLogos extends Command
|
||||
{
|
||||
protected $signature = 'tools:mirror-logos';
|
||||
|
||||
protected $description = 'Queue jobs to download externally-hosted tool logos and serve them from local storage';
|
||||
|
||||
public function handle(): int
|
||||
{
|
||||
$tools = Tool::query()->whereNotNull('logo_url')->get()->reject->hasLocalLogo();
|
||||
|
||||
$tools->each->queueLogoMirrorIfNeeded();
|
||||
|
||||
$this->info("Queued {$tools->count()} tool logo(s) for mirroring.");
|
||||
|
||||
return self::SUCCESS;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user