StoreMineStoreMine
Guide
Admin Panel
Storefront
Deployment
  • FAQ
  • Changelog
  • Credits
Guide
Admin Panel
Storefront
Deployment
  • FAQ
  • Changelog
  • Credits
  • Getting Started

    • Introduction
    • Requirements
    • Installation
    • Configuration
    • Demo Data

Configuration

All configuration lives in two places:

  1. .env — server-level secrets and connection strings (this page)
  2. Admin → Settings — everything a store manager should touch day-to-day (business info, payment toggles, email sender, storage provider, AI keys). See the Settings guide.

Many integrations can be configured in either place: seeding reads the .env values once as defaults, and the admin Settings pages let you change them later without touching the server.

After editing .env in production

Re-run php artisan config:cache so the changes take effect.

Core

KeyDescription
APP_NAMEYour store name (used in emails and titles)
APP_ENVproduction on a live site
APP_DEBUGMust be false in production — preflight enforces this
APP_URLFull public URL, e.g. https://shop.example.com
APP_KEYSet by php artisan key:generate — never share it
DEMO_MODEtrue locks the install into read-mostly demo behaviour

Database

KeyDescription
DB_CONNECTIONmysql
DB_HOST / DB_PORTUsually 127.0.0.1 / 3306
DB_DATABASE / DB_USERNAME / DB_PASSWORDYour database credentials

First admin account

Read once by the seeder — see Installation step 6.

KeyDescription
ADMIN_EMAILEmail for the first super admin (default [email protected])
ADMIN_PASSWORDPassword for it — leave empty to get a generated one printed at seed time

Mail

Transactional email (order confirmations, password resets) and marketing campaigns:

KeyDescription
MAIL_MAILERsmtp for real delivery, log for testing
MAIL_HOST / MAIL_PORTYour SMTP server
MAIL_USERNAME / MAIL_PASSWORDSMTP credentials
MAIL_FROM_ADDRESS / MAIL_FROM_NAMESender identity

SMTP can also be configured from Admin → Settings → Email Config, including a test-send button.

Payments

Cash on Delivery works with zero configuration. Online gateways activate when their keys are present — via .env at seed time or later in Admin → Settings → Payments.

Stripe

KeyDescription
STRIPE_SECRET_KEYsk_live_… (or sk_test_…)
STRIPE_PUBLISHABLE_KEYpk_live_…
STRIPE_WEBHOOK_SECRETwhsec_… — register the webhook in your Stripe dashboard
STRIPE_CHARGE_CURRENCIESCurrencies Stripe should charge in

PayPal

KeyDescription
PAYPAL_ENABLEDtrue / false
PAYPAL_MODEsandbox or live
PAYPAL_CLIENT_ID / PAYPAL_CLIENT_SECRETREST API credentials
PAYPAL_WEBHOOK_IDFor webhook signature verification

bKash (Bangladesh)

KeyDescription
BKASH_USERNAME / BKASH_PASSWORDMerchant credentials
BKASH_APP_KEY / BKASH_APP_SECRETApp credentials
BKASH_SANDBOXtrue for testing

SSLCommerz (Bangladesh)

KeyDescription
SSLCOMMERZ_STORE_ID / SSLCOMMERZ_STORE_PASSWORDStore credentials
SSLCOMMERZ_SANDBOXtrue for testing
SSLCOMMERZ_*_URLInit / validation / refund / callback / IPN endpoints

Register your webhooks

Each gateway needs its webhook/IPN URL registered in the provider's dashboard so payment confirmations reach your store. The exact URLs are listed in deploy/DEPLOYMENT.md § "Webhooks to register with each provider".

Media storage

Local disk works out of the box. For S3 or DigitalOcean Spaces:

KeyDescription
STORAGE_PROVIDERlocal, s3, …
STORAGE_ACCESS_KEY_ID / STORAGE_SECRET_ACCESS_KEYProvider credentials
STORAGE_REGION / STORAGE_BUCKET_NAMEBucket location
STORAGE_ENDPOINT / STORAGE_PUBLIC_URLFor S3-compatible providers (Spaces, MinIO)
STORAGE_FORCE_PATH_STYLEtrue for most S3-compatible services

Also configurable in Admin → Settings → Storage.

AI (all optional)

Claude — text features

Product copy, review moderation, support chatbot, fraud scoring, email copy, merchandising insights:

KeyDescription
ANTHROPIC_API_KEYYour Anthropic API key — get one at console.anthropic.com
AI_MODELModel id (a sensible default ships in .env.example)
AI_EFFORT / AI_MAX_TOKENS / AI_CACHE_TTLTuning knobs — defaults are fine
AI_EMBEDDINGS_PROVIDEROptional semantic search provider
VOYAGE_API_KEY / VOYAGE_MODELOnly if using Voyage embeddings

AI Studio — image & video generation

Configure any subset; providers appear in the AI Studio UI when their key is present:

KeyProvider
GEMINI_API_KEYGoogle Gemini
OPENAI_API_KEYOpenAI
FAL_KEYFAL
REPLICATE_API_TOKENReplicate

You pay providers directly

AI usage is billed by each provider to your account. StoreMine never proxies or meters your AI traffic.

Shipping & currency

KeyDescription
STEADFAST_BASE_URLSteadfast courier API (Bangladesh) — credentials go in Admin → Settings → Courier
FX_PROVIDER / FX_BASE_URLExchange-rate source for php artisan currency:refresh (default: exchangerate.host)

Queue & scheduler

KeyDescription
QUEUE_CONNECTIONdatabase by default; redis for higher volume
CRON_SECRETProtects HTTP-triggered scheduled endpoints

Remember: the queue worker and the cron entry from Installation step 10 must be running in production — campaigns, emails and AI jobs all depend on them.

Prev
Installation
Next
Demo Data