<?php

namespace App\Http\Resources;

use Illuminate\Http\Request;
use Illuminate\Http\Resources\Json\JsonResource;

class factorsResoruce extends JsonResource
{
    /**
     * Transform the resource into an array.
     *
     * @return array<string, mixed>
     */
    public function toArray(Request $request): array
    {
        return [
            "id"=>$this->id,
            "factor_number"=>$this->factor_number,
            "date"=>$this->date,
            "vendor"=>$this->vendor,
            "user_id"=>$this->user_id,
            "type"=>$this->type,
            "description"=>$this->description,
        ];
    }
}
