> ## Documentation Index
> Fetch the complete documentation index at: https://mintlify.com/estebansalas94/Prueba-Soporte/llms.txt
> Use this file to discover all available pages before exploring further.

# Configuration

> Reference for every environment variable in .env.example for Prueba Soporte.

All configuration is managed through the `.env` file in the project root. Copy `.env.example` to `.env` and update the values for your environment.

```bash theme={null}
cp .env.example .env
```

## App settings

Core application identity and runtime behaviour.

| Variable                 | Default            | Description                                                                              |
| ------------------------ | ------------------ | ---------------------------------------------------------------------------------------- |
| `APP_NAME`               | `Laravel`          | Application name displayed in the UI and emails.                                         |
| `APP_ENV`                | `local`            | Runtime environment. Use `production` on live servers.                                   |
| `APP_KEY`                | *(empty)*          | 32-character encryption key. Generated by `php artisan key:generate`. Must not be empty. |
| `APP_DEBUG`              | `true`             | When `true`, detailed error pages are shown. Set to `false` in production.               |
| `APP_TIMEZONE`           | `UTC`              | Default timezone for dates and times throughout the application.                         |
| `APP_URL`                | `http://localhost` | Full base URL used in generated links and emails.                                        |
| `APP_LOCALE`             | `en`               | Default locale for translations.                                                         |
| `APP_FALLBACK_LOCALE`    | `en`               | Locale used when a translation key is missing in `APP_LOCALE`.                           |
| `APP_FAKER_LOCALE`       | `en_US`            | Locale used by Faker when generating seed data.                                          |
| `APP_MAINTENANCE_DRIVER` | `file`             | Storage driver for maintenance mode state (`file` or `database`).                        |
| `BCRYPT_ROUNDS`          | `12`               | Cost factor for bcrypt password hashing. Higher values are slower but more secure.       |

<Warning>
  Never set `APP_DEBUG=true` or `APP_ENV=local` on a production server. Doing so exposes stack traces and environment variables to end users.
</Warning>

## Logging

| Variable                   | Default  | Description                                                                                                |
| -------------------------- | -------- | ---------------------------------------------------------------------------------------------------------- |
| `LOG_CHANNEL`              | `stack`  | Primary log channel. The `stack` channel aggregates multiple channels.                                     |
| `LOG_STACK`                | `single` | Channels included when `LOG_CHANNEL=stack`.                                                                |
| `LOG_DEPRECATIONS_CHANNEL` | `null`   | Channel for PHP and Laravel deprecation notices.                                                           |
| `LOG_LEVEL`                | `debug`  | Minimum severity to log (`debug`, `info`, `notice`, `warning`, `error`, `critical`, `alert`, `emergency`). |

## Database

| Variable        | Default          | Description                                                              |
| --------------- | ---------------- | ------------------------------------------------------------------------ |
| `DB_CONNECTION` | `mysql`          | Database driver. Supported values: `mysql`, `sqlite`, `pgsql`, `sqlsrv`. |
| `DB_HOST`       | `127.0.0.1`      | Hostname of the database server.                                         |
| `DB_PORT`       | `3306`           | Port of the database server. Default MySQL port is `3306`.               |
| `DB_DATABASE`   | `prueba_soporte` | Name of the database.                                                    |
| `DB_USERNAME`   | `root`           | Database user.                                                           |
| `DB_PASSWORD`   | *(empty)*        | Password for the database user.                                          |

<Note>
  To use SQLite instead of MySQL, set `DB_CONNECTION=sqlite` and `DB_DATABASE` to the absolute path of your `.sqlite` file, for example `/absolute/path/to/database/database.sqlite`. The `DB_HOST`, `DB_PORT`, `DB_USERNAME`, and `DB_PASSWORD` variables are ignored for SQLite.
</Note>

## Session

| Variable           | Default    | Description                                                                                    |
| ------------------ | ---------- | ---------------------------------------------------------------------------------------------- |
| `SESSION_DRIVER`   | `database` | Where sessions are stored. Options include `file`, `cookie`, `database`, `redis`, `memcached`. |
| `SESSION_LIFETIME` | `120`      | Session expiry in minutes of inactivity.                                                       |
| `SESSION_ENCRYPT`  | `false`    | Encrypt session data at rest when `true`.                                                      |
| `SESSION_PATH`     | `/`        | Cookie path scope.                                                                             |
| `SESSION_DOMAIN`   | `null`     | Cookie domain scope. `null` defaults to the current domain.                                    |

## Cache and queue

| Variable               | Default    | Description                                                                       |
| ---------------------- | ---------- | --------------------------------------------------------------------------------- |
| `CACHE_STORE`          | `database` | Default cache driver. Options: `database`, `file`, `redis`, `memcached`, `array`. |
| `CACHE_PREFIX`         | *(empty)*  | String prefix added to all cache keys to avoid collisions.                        |
| `QUEUE_CONNECTION`     | `database` | Queue driver. Options: `sync`, `database`, `redis`, `sqs`.                        |
| `BROADCAST_CONNECTION` | `log`      | Broadcasting driver. `log` writes events to the log file.                         |
| `FILESYSTEM_DISK`      | `local`    | Default filesystem disk for file storage.                                         |

## Redis

Required only when `CACHE_STORE`, `SESSION_DRIVER`, or `QUEUE_CONNECTION` is set to `redis`.

| Variable         | Default     | Description                                        |
| ---------------- | ----------- | -------------------------------------------------- |
| `REDIS_CLIENT`   | `phpredis`  | PHP Redis client library (`phpredis` or `predis`). |
| `REDIS_HOST`     | `127.0.0.1` | Redis server hostname.                             |
| `REDIS_PASSWORD` | `null`      | Redis password. `null` means no authentication.    |
| `REDIS_PORT`     | `6379`      | Redis server port.                                 |

## Mail

The default mailer is `log`, which writes emails to the Laravel log file instead of sending them. This is suitable for local development.

| Variable            | Default             | Description                                                                           |
| ------------------- | ------------------- | ------------------------------------------------------------------------------------- |
| `MAIL_MAILER`       | `log`               | Mail transport driver. Options: `smtp`, `sendmail`, `mailgun`, `ses`, `log`, `array`. |
| `MAIL_HOST`         | `127.0.0.1`         | SMTP server hostname.                                                                 |
| `MAIL_PORT`         | `2525`              | SMTP server port. Common values: `25`, `465`, `587`, `2525`.                          |
| `MAIL_USERNAME`     | `null`              | SMTP authentication username.                                                         |
| `MAIL_PASSWORD`     | `null`              | SMTP authentication password.                                                         |
| `MAIL_ENCRYPTION`   | `null`              | SMTP encryption. Options: `tls`, `ssl`, `null`.                                       |
| `MAIL_FROM_ADDRESS` | `hello@example.com` | The "from" address on all outgoing emails.                                            |
| `MAIL_FROM_NAME`    | `${APP_NAME}`       | The "from" display name on all outgoing emails.                                       |

<Tip>
  During local development, keep `MAIL_MAILER=log` to avoid accidental email delivery. Inspect sent emails in `storage/logs/laravel.log`.
</Tip>

## AWS / S3

Required only when `FILESYSTEM_DISK=s3`.

| Variable                      | Default     | Description                                                                     |
| ----------------------------- | ----------- | ------------------------------------------------------------------------------- |
| `AWS_ACCESS_KEY_ID`           | *(empty)*   | AWS access key ID.                                                              |
| `AWS_SECRET_ACCESS_KEY`       | *(empty)*   | AWS secret access key.                                                          |
| `AWS_DEFAULT_REGION`          | `us-east-1` | AWS region for the S3 bucket.                                                   |
| `AWS_BUCKET`                  | *(empty)*   | S3 bucket name.                                                                 |
| `AWS_USE_PATH_STYLE_ENDPOINT` | `false`     | Use path-style S3 URLs. Required for some S3-compatible services such as MinIO. |

## Memcached

Required only when `CACHE_STORE=memcached`.

| Variable         | Default     | Description                |
| ---------------- | ----------- | -------------------------- |
| `MEMCACHED_HOST` | `127.0.0.1` | Memcached server hostname. |

## Front-end

| Variable        | Default       | Description                                                             |
| --------------- | ------------- | ----------------------------------------------------------------------- |
| `VITE_APP_NAME` | `${APP_NAME}` | Application name variable inherited from the standard Laravel skeleton. |

<Warning>
  This project uses **Laravel Mix** (Webpack) as its asset bundler, not Vite. The `VITE_APP_NAME` variable is present in `.env.example` because it is part of the default Laravel 11 skeleton, but it has no effect on the compiled assets. Front-end environment variables are not currently used in the build configuration (`webpack.mix.js`).
</Warning>
