generated from liutk/owl-admin-base
24 lines
544 B
PHP
24 lines
544 B
PHP
<?php
|
|
|
|
namespace App\Http\Resources;
|
|
|
|
use Illuminate\Http\Request;
|
|
use Illuminate\Http\Resources\Json\JsonResource;
|
|
|
|
class WorkflowCheckResource extends JsonResource
|
|
{
|
|
/**
|
|
* Transform the resource into an array.
|
|
*
|
|
* @return array<string, mixed>
|
|
*/
|
|
public function toArray(Request $request): array
|
|
{
|
|
return [
|
|
'check_status' => $this->check_status,
|
|
'checked_at' => $this->checked_at?->getTimestamp(),
|
|
'check_remarks' => (string) $this->check_remarks,
|
|
];
|
|
}
|
|
}
|