Files
kartoteka/app/Http/Resources/ArchiveInfoResource.php
2025-12-12 17:10:05 +09:00

27 lines
623 B
PHP

<?php
namespace App\Http\Resources;
use Illuminate\Http\Request;
use Illuminate\Http\Resources\Json\JsonResource;
class ArchiveInfoResource extends JsonResource
{
/**
* Transform the resource into an array.
*
* @return array<string, mixed>
*/
public function toArray(Request $request): array
{
return [
'id' => $this->id,
'num' => $this->num,
'post_in' => $this->post_in,
'status' => $this->status,
'historyable_id' => $this->historyable_id,
'historyable_type' => $this->historyable_type,
];
}
}