LaraEnv logo LaraEnv
On this page

Reference

Everything LaraEnv writes lives under C:\laraenv\. Nothing is scattered into Program Files, AppData or the registry — uninstalling is "delete the folder".

Paths & layout

C:\laraenv\
├── bin\              Helper executables (composer.phar, deplister.exe, …)
├── php\
│   ├── 7.4\
│   ├── 8.1\
│   ├── 8.3\
│   ├── 8.4\
│   └── current\      Symlink to the globally active version
├── nginx\
├── apache\
├── mysql\
├── postgres\
├── redis\
├── mailpit\
├── www\              Your projects live here
│   └── my-app\
└── etc\              Per-project vhosts, certs, configs

Default ports

ServicePort
Nginx (HTTP)80
Nginx (HTTPS)443
Apache (alt)8080
MySQL3306
PostgreSQL5432
Redis6379
Mailpit (SMTP)1025
Mailpit (UI)8025
Meilisearch7700

Environment variables

  • LARAENV_HOME — base directory, defaults to C:\laraenv.
  • LARAENV_PHP — overrides the active PHP version for shells.
  • LARAENV_TOKEN — bearer token used by the desktop client to talk to laraenv.com (for Pro sync and deploys).

Config files

  • Project vhost — C:\laraenv\etc\nginx\sites\.conf
  • Per-project php.ini override — C:\laraenv\www\\.laraenv\php.ini
  • Global service configs — C:\laraenv\\conf\ (e.g. nginx\conf\nginx.conf)
  • Cron jobs — C:\laraenv\etc\cron\jobs.yaml
  • SSH hosts — C:\laraenv\etc\ssh\hosts.json (encrypted when Pro sync is enabled)

CLI

Drop C:\laraenv\bin on your PATH (the installer offers this) to use laraenv from any shell.

laraenv status               # show all services
laraenv start  <service>     # nginx, mysql, php-fpm@8.3, …
laraenv stop   <service>
laraenv site:new my-app --php=8.3 --scaffold=laravel
laraenv site:rm  my-app
laraenv php:use 8.4          # set global PHP
laraenv ssh open prod        # open SSH session by name
laraenv cron:list
laraenv deploy my-app        # Pro — push and deploy

Logs

  • Per-project access / error — C:\laraenv\www\\.laraenv\logs\
  • Nginx global — C:\laraenv\nginx\logs\
  • PHP-FPM — C:\laraenv\php\\logs\
  • Cron jobs — C:\laraenv\etc\cron\logs\.log
  • Dashboard / GUI — %APPDATA%\LaraEnv\logs\app.log

HTTPS / certificates

LaraEnv installs its own root CA into the Windows Trusted Root store on first launch and signs a leaf cert for every .test domain. Browsers see the cert as valid; the private key never leaves your machine. Remove the CA at any time from certmgr.msc (look for LaraEnv Local Root).