Overview
This guide will help you set up ElectroFix AI locally and get your first multi-tenant repair shop management system running quickly.ElectroFix AI is a Laravel 12-based SaaS platform for electronics repair shop management with multi-tenancy, AI diagnostics, inventory tracking, and billing capabilities.
Prerequisites
Before you begin, ensure you have:- PHP 8.2 or higher with required extensions (PDO, mbstring, OpenSSL, JSON, cURL)
- Composer (PHP dependency manager)
- MySQL 5.7+ or MariaDB 10.3+ (or SQLite for quick testing)
- Git for cloning the repository
Quick Setup
Install PHP Dependencies
Install all required PHP packages using Composer:This will install:
- Laravel 12 framework
- Laravel Tinker
- DomPDF for invoice generation
- All development dependencies
Configure Environment
Create your environment configuration file:
Quick Database Setup (SQLite)
Quick Database Setup (SQLite)
For the fastest setup, use SQLite (default configuration):Create the database file:
.env
Production Setup (MySQL)
Production Setup (MySQL)
For production-like setup with MySQL:
- Create a MySQL database:
- Update your
.envfile:
.env
Run Migrations and Seeders
Set up the database schema and populate it with demo data:This command will:
- Create all database tables (companies, users, orders, inventory, billing, etc.)
- Seed two demo companies:
- ElectroFix Cliente Demo (regular company)
- ElectroFix Developer Lab (developer test company)
- Create three demo users with different roles
- Generate sample operational data (customers, equipments, orders)
- Create inventory items and billing documents
Start the Development Server
Launch the Laravel development server:You should see output similar to:
Demo Credentials
The seeder creates three demo users with different permission levels:All demo accounts use the password
password123. Change these in production!What You’ll See
After Login
Depending on the role you log in with, you’ll be redirected to different dashboards: Developer Dashboard (developer@electrofix.ai)
- Global system overview
- All companies management
- Subscription insights
- System-wide AI usage tracking
admin@electrofix.ai)
- Company profile management
- Worker/user management
- Subscription plan details
- Company-wide statistics
worker@electrofix.ai)
- Assigned repair orders
- Customer management
- Equipment tracking
- Inventory access (if permitted)
- Billing/POS access (if permitted)
Key Features to Explore
Repair Orders
Create and track repair orders with:
- Customer and equipment linking
- Status tracking (Pending → In Progress → Completed/Cancelled)
- AI-powered diagnostics (for Enterprise plans)
- Technician assignment
Inventory Management
Manage repair parts and products:
- Stock tracking with movement history
- Low stock alerts
- Product categories
- Cost and sale price management
Billing & POS
Generate invoices and receipts:
- Sale, Service, and Mixed document types
- PDF generation with company branding
- VAT/IVA calculation
- Link to repair orders
Multi-Tenancy
Complete tenant isolation:
- Company-specific data
- Subscription-based feature access
- Role-based permissions
- AI usage limits per company
Testing AI Diagnostics
The AI diagnostic feature is available for Enterprise and Developer Test plans:Enable AI Diagnosis
- Select a customer and equipment
- Enter symptoms (max 600 characters)
- Check the “Request AI Diagnosis” checkbox
- Submit the order
AI diagnostics use a local stub implementation. In production, this connects to your AI provider (OpenAI, Anthropic, etc.).
Next Steps
Installation Guide
Detailed setup for XAMPP, production environments, and troubleshooting
API Reference
Complete API documentation for integrations
User Roles
Understanding permissions and access control
Multi-Tenancy
How company isolation and data separation works
Common Issues
500 Error After Installation
500 Error After Installation
Solution: Clear Laravel caches and regenerate the application key:
Database Connection Failed
Database Connection Failed
For SQLite:
- Ensure
database/database.sqliteexists - Check file permissions (must be writable)
- Verify MySQL service is running
- Confirm database exists and credentials are correct
- Test connection:
mysql -u root -p
Composer Install Fails
Composer Install Fails
Solution: Ensure PHP version is 8.2 or higher:Update PHP or install missing extensions:
Migration Errors
Migration Errors
Solution: Drop all tables and re-run migrations:
Development Workflow
For ongoing development:The application uses Laravel 12 with Blade templates, Bootstrap 5, and vanilla JavaScript. No frontend build step required!