25 lines
593 B
PHP
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,
|
|
];
|
|
}
|
|
}
|