CareerTrack is configured entirely through theDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/ericcobasdev/careertrack-api/llms.txt
Use this file to discover all available pages before exploring further.
.env file located at the project root. Laravel reads this file at boot time and makes every value accessible via the env() helper and the config/ directory. This guide covers the key variables you need to understand for local development and production deployments.
Environment File Setup
The repository ships with.env.example — a template containing every supported variable with safe defaults. Copy it to create your working .env:
APP_KEY in your .env. Never commit the real .env to version control.
Key Environment Variables
The human-readable name of the application. Used in notifications and log entries.
The current environment. Accepted values are
local, production, and testing. Laravel enables additional debugging features when set to local.A 32-character base64-encoded encryption key. Generated by
php artisan key:generate. The application will refuse to boot if this is empty.When
true, Laravel renders full stack traces in error responses. Always set to false in production to avoid exposing internal details.The base URL of the application. Used when generating absolute URLs and in Sanctum’s stateful domain resolution.
The database driver to use. The default configuration uses
sqlite. Supported values include sqlite, mysql, mariadb, and pgsql.For SQLite, this is the path to the database file (relative to the project root). For MySQL or PostgreSQL, this is the database name.
The logging channel used to write application logs. The
stack channel aggregates multiple drivers. Other options include single, daily, and stderr.The minimum severity level that gets written to the log. Standard levels from least to most severe:
debug, info, notice, warning, error, critical, alert, emergency.Switching to MySQL or PostgreSQL
The default SQLite setup is ideal for local development, but production environments typically use MySQL or PostgreSQL. Uncomment and update the relevant block in your.env:
DB_CONNECTION to pgsql and DB_PORT to 5432. After updating the file, re-run migrations against the new database:
When switching away from SQLite, you do not need the
database/database.sqlite file. The DB_DATABASE value becomes the name of the database on your server rather than a file path.Sanctum Configuration
CareerTrack uses Laravel Sanctum for API authentication. Sanctum supports two authentication strategies:- Token authentication — clients send a bearer token in the
Authorizationheader. This is the default mode for mobile apps and third-party API consumers. No extra configuration is needed. - SPA (cookie) authentication — a first-party JavaScript SPA authenticates via encrypted session cookies. The stateful domains list in
config/sanctum.phpalready includeslocalhost,localhost:3000,127.0.0.1, and127.0.0.1:8000, so no change is necessary for local SPA development.