getFilename(); $tusData = $cache->get($uploadKey); if ( !Arr::get($tusData, 'expires_at') || Carbon::parse($tusData['expires_at'])->lt(Carbon::now()) ) { $cache->delete($uploadKey); File::delete($file); } } } $this->info('Expired TUS uploads deleted.'); return Command::SUCCESS; } }