1234567891011121314151617181920212223242526 |
- <?php
- namespace App\Http\Resources\API;
- use Illuminate\Http\Request;
- use Illuminate\Http\Resources\Json\JsonResource;
- class AssetGroupResource extends JsonResource
- {
- /**
- * Transform the resource into an array.
- *
- * @return array<string, mixed>
- */
- public function toArray(Request $request): array
- {
- return [
- 'id' => $this->id,
- 'name' => $this->name,
- 'sequence' => $this->sequence,
- 'created_at' => (string) $this->created_at,
- 'updated_at' => (string) $this->updated_at,
- 'display_id'=>$this->display_id,
- ];
- }
- }
|