<?php

namespace App\Http\Resources\Accounting;

use Illuminate\Http\Resources\Json\JsonResource;

class AssetResource extends JsonResource
{
   
    public function toArray($request)
    {
        return [
            'id'         => $this->id,
            'name'       => $this->name,
            'desc'       => $this->desc,
            'created_by' => $this->createdBy->name??'',
            'created_at' => $this->created_at,
            'updated_at' => $this->updated_at,
        ];
    }
}
