<?php

namespace TechSoft\Laravel\Api\Command;

use Carbon\Carbon;
use Edwin404\Base\Support\ModelHelper;
use Illuminate\Console\Command;
use Illuminate\Support\Facades\DB;

class ApiTokenDBCleanerCommand extends Command
{
    
    protected $signature = 'ApiTokenDBCleanerCommand';

    
    protected $description = 'ApiTokenDBCleanerCommand';

    
    public function handle()
    {
        ModelHelper::model('api_token')->where('expireTime', '<', Carbon::now())->delete();
    }
}