| 12345678910111213141516171819202122232425262728 |
- <?php
-
- namespace App\Http\Resources;
-
- use Illuminate\Http\Resources\Json\JsonResource;
-
- class FormResource extends JsonResource
- {
- /**
- * Transform the resource into an array.
- *
- * @param \Illuminate\Http\Request $request
- * @return array
- */
- public function toArray($request)
- {
- // return parent::toArray($request);
- return [
- '_id' => $this->_id,
- 'formT' => $this->type_application,
- 'type' => $this->type_service,
- 'subscriber' => $this->subscriber,
- 'work_order' => $this->workorder,
- 'created_at' => $this->created_at->format('Y-m-d H:i:s'),
- 'updated_at' => $this->updated_at->format('Y-m-d H:i'),
- ];
- }
- }
|