add controllers, servoices
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
<?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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user