SaborGestion separates products (menu items sold to customers) from inventory (raw ingredients tracked by stock level). Both resources are accessible to users with theDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/Henry4ndrew/saborGestion/llms.txt
Use this file to discover all available pages before exploring further.
admin or cocinero role.
Productos
Full CRUD for menu items with name, description, price, category, and active status.
Inventario
Ingredient tracking with quantity, unit of measure, and a minimum stock threshold that triggers a sidebar badge.
Products
Database schema
Theproductos table is defined in database/migrations/2026_03_21_004400_create_productos_table.php:
| Column | Type | Notes |
|---|---|---|
id | bigint (PK) | Auto-increment |
nombre | varchar | Product name, required |
descripcion | text | Optional description |
precio | decimal(10,2) | Selling price |
categoria | varchar | Category label (e.g., “Entradas”, “Bebidas”) |
activo | boolean | Whether the product appears on the menu; defaults to true |
created_at / updated_at | timestamp | Laravel timestamps |
Routes
The resource controller registers all standard RESTful routes under/productos:
| Method | URI | Action |
|---|---|---|
GET | /productos | index — list all products |
GET | /productos/create | create — show creation form |
POST | /productos | store — save a new product |
GET | /productos/{producto} | show — view a product |
GET | /productos/{producto}/edit | edit — show edit form |
PUT/PATCH | /productos/{producto} | update — apply changes |
DELETE | /productos/{producto} | destroy — delete a product |
Adding a product
Fill in the fields
Enter the product nombre, optional descripción, precio, and categoría. The activo toggle defaults to enabled.
Inventory
Database schema
Theinventarios table is defined in database/migrations/2026_03_21_004623_create_inventarios_table.php:
| Column | Type | Notes |
|---|---|---|
id | bigint (PK) | Auto-increment |
ingrediente | varchar | Ingredient name |
cantidad | decimal(10,2) | Current quantity on hand |
unidad | varchar | Unit of measure (e.g., “kg”, “litros”, “unidades”) |
stock_minimo | decimal(10,2) | Low-stock threshold; defaults to 5 |
created_at / updated_at | timestamp | Laravel timestamps |
Routes
| Method | URI | Action |
|---|---|---|
GET | /inventario | index — list all ingredients |
GET | /inventario/create | create — show creation form |
POST | /inventario | store — save a new ingredient |
GET | /inventario/{inventario} | show — view an ingredient |
GET | /inventario/{inventario}/edit | edit — show edit form |
PUT/PATCH | /inventario/{inventario} | update — apply changes |
DELETE | /inventario/{inventario} | destroy — delete an ingredient |
Low-stock badge
The sidebar displays a notification badge when one or more ingredients have acantidad at or below their stock_minimo. This gives cooks and admins an at-a-glance warning without navigating into the inventory list.
Updating inventory stock
Navigate to the inventory list
Go to
/inventario to see all ingredients with their current quantity and minimum threshold.Identify low-stock items
Items where
cantidad ≤ stock_minimo are highlighted and also shown in the sidebar badge count.Update the quantity
Enter the new
cantidad value after restocking. You can also adjust the unidad or stock_minimo as needed.