Before running AR Barbería for the first time, you need to configure your environment file. Laravel reads all runtime configuration from aDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/OswalSnow/AR-Barber/llms.txt
Use this file to discover all available pages before exploring further.
.env file in the project root. Copy .env.example to .env, then fill in the values described on this page to match your local or production setup before running any migrations.
Copy the example file
If you usedcomposer run setup, the setup script copies .env.example for you automatically. If you are configuring the environment manually, copy it yourself:
Generate the application key
AR Barbería encrypts session data, cookies, and other sensitive values usingAPP_KEY. Generate it once after copying the environment file:
Key environment variables
| Variable | Default | Description |
|---|---|---|
APP_NAME | Laravel | The application name displayed in emails and notifications. Set to AR Barbería. |
APP_ENV | local | Deployment environment. Use local for development, production for live servers. |
APP_KEY | (empty) | 32-character encryption key. Generated by php artisan key:generate. |
APP_DEBUG | true | Show detailed error pages. Must be false in production. |
APP_URL | http://localhost | The fully qualified URL of the application, used to generate absolute URLs. |
DB_CONNECTION | sqlite | Database driver. sqlite, mysql, or pgsql. |
DB_HOST | 127.0.0.1 | Database server hostname. Only used for MySQL and PostgreSQL. |
DB_PORT | 3306 | Database port. 3306 for MySQL, 5432 for PostgreSQL. |
DB_DATABASE | laravel | Database name (or the path to the SQLite file for SQLite connections). |
DB_USERNAME | root | Database user. |
DB_PASSWORD | (empty) | Database password. |
FILESYSTEM_DISK | local | Default filesystem disk. Set to public for portfolio image uploads. |
SESSION_DRIVER | database | Where sessions are stored. database is the default; redis is recommended for high traffic. |
QUEUE_CONNECTION | database | Queue backend. database works out of the box; switch to redis or sqs in production. |
Database connection
DB_CONNECTION defaults to sqlite, which requires no additional server setup. The SQLite database file is created automatically when you run migrations. This is ideal for local development, automated tests, and quick demos.Filesystem disk for portfolio images
AR Barbería stores portfolio images uploaded by barbers. To make uploaded files publicly accessible through the browser, setFILESYSTEM_DISK to public and create the storage symlink:
storage/app/public into public/storage:
Session and queue drivers
BothSESSION_DRIVER and QUEUE_CONNECTION default to database, which stores data in the sessions, jobs, and failed_jobs tables created by the framework migrations. No extra infrastructure is required for local development.
For production servers with higher traffic, consider switching to redis for both drivers to reduce database load.