up
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
<?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,
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user