Files
2026-01-06 15:35:59 -05:00

25 lines
593 B
PHP

<?php
namespace App\Http\Resources;
use Illuminate\Http\Request;
use Illuminate\Http\Resources\Json\JsonResource;
class CajaResource extends JsonResource
{
/**
* Transform the resource into an array.
*/
public function toArray(Request $request): array
{
return [
'id' => $this->id,
'monto_inicial' => $this->monto_inicial,
'monto_final' => $this->monto_final,
'fecha_apertura' => $this->fecha_apertura,
'fecha_cierre' => $this->fecha_cierre,
'estado' => $this->estado,
];
}
}