%PDF- %PDF-
Direktori : /var/www/html/hrsys/api/app/Transformers/ |
Current File : /var/www/html/hrsys/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, ]; } }