forked from admin/services_core
39 lines
799 B
PHP
39 lines
799 B
PHP
<?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,
|
|
];
|
|
}
|
|
} |