forked from admin/services_core
update api ticket type
This commit is contained in:
@@ -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,
|
||||
];
|
||||
}
|
||||
}
|
||||
@@ -15,13 +15,17 @@ class TicketTypeResource extends JsonResource
|
||||
public function toArray(Request $request): array
|
||||
{
|
||||
return [
|
||||
'id' => $this->id,
|
||||
'code' => $this->code,
|
||||
'name' => $this->name,
|
||||
'id' => $this->id,
|
||||
'code' => $this->code,
|
||||
'name' => $this->name,
|
||||
'need_approval' => $this->need_approval,
|
||||
'sla_minutes' => $this->sla_minutes,
|
||||
'created_at' => $this->created_at,
|
||||
'updated_at' => $this->updated_at,
|
||||
'sla_minutes' => $this->sla_minutes,
|
||||
'require_photo' => $this->require_photo,
|
||||
'require_material' => $this->require_material,
|
||||
'need_customer' => $this->need_customer,
|
||||
'need_incident_type' => $this->need_incident_type,
|
||||
'created_at' => $this->created_at,
|
||||
'updated_at' => $this->updated_at,
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user