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

24 lines
548 B
PHP

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