<?php

namespace App\Http\Resources;

use Illuminate\Http\Resources\Json\JsonResource;

class LogResource extends JsonResource
{
    
    public function toArray($request)
    {
        return [
            'id'        => $this->id,
            'user_name'      => $this->user->name,
            'description'      => $this->description,
            'created_at'      => $this->created_at,

        ];
    }
}
