<?php

namespace App\Services\Communication;

use App\Models\CommunicationLog;
use Illuminate\Support\Facades\Schema;

class CommunicationLogService
{
    public function log(array $payload): void
    {
        if (!Schema::hasTable('communication_logs')) {
            return;
        }

        CommunicationLog::query()->create($payload);
    }
}
