Configuring Loom
After installation, configure your project for a smooth experience.
1️⃣ Environment Variables
Section titled “1️⃣ Environment Variables”Ensure your .env file contains:
APP_NAME="My Loom App"APP_ENV=localAPP_KEY=base64:GENERATED_KEYAPP_DEBUG=trueAPP_URL=http://localhost:5173
DB_CONNECTION=mysqlDB_HOST=127.0.0.1DB_PORT=3306DB_DATABASE=loomDB_USERNAME=rootDB_PASSWORD=
BROADCAST_DRIVER=logCACHE_DRIVER=fileQUEUE_CONNECTION=syncSESSION_DRIVER=fileTips:
- APP_URL should match your frontend dev server.
- Verify database credentials before running migrations.
2️⃣ Module Configuration
Section titled “2️⃣ Module Configuration”Edit config/loom.php to enable, disable, or configure modules:
return [ 'modules' => [ 'users' => true, 'projects' => true, 'billing' => false, // Add or remove modules as needed ],];Notes:
- Modules can be activated or deactivated without touching core code.
- Custom modules can be added to
app/Modulesor via package.
3️⃣ Frontend & Tools
Section titled “3️⃣ Frontend & Tools”- If using Bun / Vite: run
bun installafter adding frontend packages. - Adjust
APP_URLfor Hot Reloading if needed. - Customize Tailwind config, Livewire components, and Alpine scripts as required.
4️⃣ Advanced Configuration
Section titled “4️⃣ Advanced Configuration”- Cache, queues, and session drivers can be modified in
.envandconfig/loom.php. - Deployments (SaaS / On-prem) can have separate
.envfiles for each environment. - Refer to
guides/deploymentfor full instructions.