Documentation 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.
Prerequisites
Make sure the following are installed before you begin:- PHP 8.2+ — required by
composer.json("php": "^8.2") - Composer — PHP dependency manager
- Node.js — for building frontend assets with Vite
- MySQL — with a database named
saborGestioncreated
Install
Configure your environment
Copy the example environment file and open it for editing:Update the database section to point at your MySQL instance:
The
.env.example defaults to SQLite. Switch DB_CONNECTION to mysql and uncomment the DB_* lines when using MySQL.Generate the application key
APP_KEY value to your .env file, which Laravel uses to encrypt sessions and cookies.Run database migrations
users, productos, inventarios, mesas, pedidos, comandas, deliveries, facturas, pagos, and cierre_cajas.Start the development server
One-command setup
Thecomposer.json includes a setup script that runs steps 2–6 in sequence:
composer run setup copies .env.example to .env automatically if .env doesn’t exist yet, but you still need to edit the database credentials before running migrations.Seed development users
SaborGestion has no database seeder file. Use Laravel Tinker to create the four role accounts manually:The
User model declares 'password' => 'hashed' in its casts array, so Laravel automatically bcrypt-hashes the password value when you use User::create(). You do not need to call Hash::make() manually in Tinker.Access the application
Navigate to http://localhost:8000. You’ll see the home page with an Iniciar Sesión button. Click it to go to the login screen at/login, then sign in with any of the seeded credentials.
After login, Laravel redirects you to the dashboard for your role:
| Role | Dashboard route |
|---|---|
admin | /dashboard/administrador |
mesero | /dashboard/mesero |
cocinero | /dashboard/cocinero |
cajero | /dashboard/cajero |