update api ticket type

This commit is contained in:
Wian Drs
2026-06-25 17:11:48 +07:00
parent ad472a9880
commit af1c98b38b
29 changed files with 1097 additions and 34 deletions
@@ -0,0 +1,39 @@
<?php
namespace App\Http\Resources\Audit;
use Illuminate\Http\Request;
use Illuminate\Http\Resources\Json\JsonResource;
class AuditLogResource extends JsonResource
{
public function toArray(Request $request): array
{
return [
'id' => $this->id,
'user_id' => $this->user_id,
'tenant_id' => $this->tenant_id,
'module' => $this->module,
'action' => $this->action,
'table_name' => $this->table_name,
'record_id' => $this->record_id,
'old_values' => $this->old_values,
'new_values' => $this->new_values,
'description' => $this->description,
'ip_address' => $this->ip_address,
'created_at' => $this->created_at,
];
}
}