SaborGestion is a standard Laravel 12 application. The sections below cover the Artisan commands and Composer convenience scripts you will use most often.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.
Composer scripts
composer.json defines four scripts that wrap the most common multi-step workflows. Run them from the project root.
composer run setup
Performs a full first-time project setup: installs PHP and Node dependencies, generates the application key, runs migrations, and builds frontend assets.
composer run dev
Starts the full development environment with all four processes running concurrently in a single terminal.
| Process | Command | What it does |
|---|---|---|
server | php artisan serve | Laravel development server at http://127.0.0.1:8000 |
queue | php artisan queue:listen --tries=1 --timeout=0 | Processes queued jobs as they arrive |
logs | php artisan pail --timeout=0 | Streams application log output to the terminal |
vite | npm run dev | Vite HMR asset compiler |
--kill-others means that if any one process exits, the remaining processes are stopped automatically.composer run test
Clears the config cache and runs the full PHPUnit test suite.
Setup commands
Use these commands when bootstrapping the project manually or after pulling changes that include new migrations.Development commands
Queue and logs
Testing
Creating users with Tinker
Because SaborGestion uses role-based access control, you need to assign arole value when creating users. Use Tinker to seed initial accounts without writing a seeder.
role field are: admin, mesero, cocinero, cajero. Any other value will fail the role middleware check on protected routes.