JFIFxxC      C  " }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbr{ gilour

File "DisableExpiredLeapLinks.php"

Full Path: /home/markqprx/iniasli.pro/app-20260222054640/Console/Commands/DisableExpiredLeapLinks.php
File size: 557 bytes
MIME-type: text/x-php
Charset: utf-8

<?php

namespace App\Console\Commands;

use App\Models\Biolink;
use Carbon\Carbon;
use Illuminate\Console\Command;

class DisableExpiredLeapLinks extends Command
{

    protected $signature = 'leapLinks:disable';
    protected $description = 'Disable expires biolink leap links.';

    public function handle(): int
    {
        app(Biolink::class)
            ->links()
            ->where('leap_until', '<', Carbon::now())
            ->update(['leap_until' => null]);

        $this->info('Disabled all expired leap links.');

        return 0;
    }
}