Skip to main content
Version: v8.x

Basic Configuration

phpvms configuration lives in two places:

  • Admin panel/admin/settings. Most day-to-day settings live here.
  • .env file — root of your phpvms install. Holds infrastructure settings: database, mail, cache, OAuth keys.

This page covers the .env file. For admin panel settings, log in as an admin and explore each section.

The .env file

Laravel ships configuration in PHP files under /config. phpvms overrides these via a .env file in the install root that the installer generates for you.

caution

Don't edit files in /config directly. Edits get overwritten on update. Override values in .env instead — that file is preserved across updates.

See Laravel configuration for the full reference.

Environment & Debug

Two flags control whether phpvms behaves like a dev install or a production install.

APP_ENV

Set to production when going live. Default is dev.

.env
APP_ENV=production

APP_DEBUG

Controls error verbosity. Keep true while developing — set false in production so users don't see stack traces.

.env
APP_DEBUG=false
DEBUG_TOOLBAR=false

After editing .env

Clear the application cache so changes take effect:

php artisan config:clear
php artisan cache:clear

If you skip this, your edits won't load.

Where to go next

SettingPage
Outgoing emailEmail
Discord webhooksNotifications
OAuth loginDiscord, IVAO, VATSIM
Database backupsBackups
Cache, queues, perfAdvanced Configuration

Language

Change the system language to any available translation. Locale codes match folder names under phpvms/resources/lang/.

For Brazilian Portuguese, confirm phpvms/resources/lang/pt-br exists, then set in .env:

.env
APP_LOCALE=pt-br

Need help?

Stuck on something or want to share what you've built? The community is active on the forum and GitHub.