Multi-tenant SaaS blueprint

EAccess Hub Control Room

Tenant-first Laravel 12 stack powered by Stancl Tenancy and Filament v4. This overview keeps every teammate aligned on which feature modules unlock per phase and how they map to the landlord / tenant split.

Setup Commands (Run in Order)

1. Initial Setup

composer install && npm install cp .env.example .env php artisan key:generate

2. Database Setup

php artisan migrate --graceful php artisan db:seed

3. Tenant Setup

php artisan tenants:migrate

5. Create New Tenant

php artisan app:create-tenant "Company Name" "company" --email=admin@company.com --password=secret123

💡 Creates: company.eah-tech.test
• Automatically sets up tenant database
• Creates user with specified credentials
• Use subdomain only (not full domain)

4. Start Development

php artisan serve npm run dev

⚠️ Login Credentials

Landlord Panel: owner@eah-tech.test / password
Demo Tenant: Visit demo.eah-tech.test (same credentials)

💡 Developer Notes

1. Update hosts file:
127.0.0.1 eah-tech.test
127.0.0.1 demo.eah-tech.test
127.0.0.1 company.eah-tech.test

2. Clear DNS cache: ipconfig /flushdns

3. Access points:
• Landlord: https://eah-tech.test/admin
• Demo: https://demo.eah-tech.test/app/login
• New tenant: https://company.eah-tech.test/app/login