<?php

namespace Modules\User\Http\Resources\stock;

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

class UserStockLogResource extends JsonResource
{

    public function toArray($request): array
    {

        return [
            'user_stock_log_id' => $this->id,
            'variable'          => $this->variable,
            'type'              => $this->type_text,
            'created_at'        => $this->created_at->format('Y-m-d H:i:s'),
        ];
    }

}