SaborGestion uses Laravel Breeze for authentication and a customDocumentation 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.
RoleMiddleware to enforce per-route access control. Every user has exactly one role stored on the users table, and that role determines which dashboards and resource routes they can reach.
Login flow
Navigate to the landing page
Open
/inicio in your browser. The landing page renders resources/views/home.blade.php.Click Iniciar Sesión
The login button redirects to
/login, the standard Laravel Breeze authentication page.Submit your credentials
Enter your email and password. Breeze validates the credentials against the
users table (password is stored as a bcrypt hash).The four roles
- admin
- mesero
- cocinero
- cajero
The
admin role has unrestricted access to every section of the application. Admins can manage all resources and are the only role that can create, edit, or delete other users via /usuarios.Accessible sections: dashboard, productos, inventario, mesas, pedidos, comandas, delivery, facturas, pagos, cierres, usuariosRole vs. access matrix
| Section | admin | mesero | cocinero | cajero |
|---|---|---|---|---|
| Dashboard | ✓ | ✓ | ✓ | ✓ |
Productos (/productos) | ✓ | ✓ | ||
Inventario (/inventario) | ✓ | ✓ | ||
Mesas (/mesas) | ✓ | ✓ | ||
Pedidos (/pedidos) | ✓ | ✓ | ||
Comandas (/comandas) | ✓ | ✓ | ||
Delivery (/delivery) | ✓ | ✓ | ||
Facturas (/facturas) | ✓ | ✓ | ||
Pagos (/pagos) | ✓ | ✓ | ||
Cierres (/cierres) | ✓ | ✓ | ||
Usuarios (/usuarios) | ✓ |
RoleMiddleware
All authenticated routes run under theauth middleware. Resource routes that require a specific role are additionally wrapped with role:<roles>:
app/Http/Middleware/RoleMiddleware.php handles each request as follows:
...$roles spread). If the authenticated user’s role appears in that list, the request proceeds. Otherwise a 403 response is returned.
Users table schema
Therole column was added to the standard Breeze users table via a dedicated migration:
User model exposes helper methods for role checks:
The default role for new users is
mesero. When creating users via /usuarios, an admin must explicitly select the desired role from the admin, mesero, cocinero, or cajero options.