Database Tools• 3 min read
Safe .env Editor & Database Automation
Edit .env files safely with timestamped backup protection, generate APP_KEY secrets, and 1-click provision databases.
Safe .env File Editor
Editing project environment variables in the terminal is prone to syntax mistakes and accidental credential deletion. Stratos includes a built-in, syntax-highlighted .env editor with automated safety backups.
Timestamped Backup Protection
Every time you save modifications to your .env in Stratos, the app automatically creates a timestamped snapshot before writing:
.env.stratos-backup-20260822-205630
If anything breaks, you can revert to any prior configuration in 1 click.
1-Click Laravel Secret Generation
Click Generate APP_KEY to invoke the active PHP runtime and generate a cryptographically secure base64:... key without opening a terminal.
1-Click Database Provisioning
When starting a new project, click Provision Database from the site details pane:
- SQLite: Automatically creates
database/database.sqliteand setsDB_CONNECTION=sqlitein.env. - MySQL: Creates a dedicated database named after your site (e.g.
CREATE DATABASE storefront;) and configuresDB_DATABASE=storefront. - PostgreSQL: Creates a PostgreSQL database and applies local role permissions.