19 lines
350 B
PHP
19 lines
350 B
PHP
<?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);
|
|
}
|
|
}
|