Before starting, ensure you’ve completed the installation steps.
Quick Setup
Start the Development Environment
Start all OptiFlow services with a single command:This starts:
- Laravel development server at
http://optiflow.test - Queue worker for background jobs
- Log viewer (Pail)
- Vite dev server for hot module replacement
Create Your First Tenant
Access the central admin panel to create a tenant:
- Open
https://optiflow.test/adminin your browser - Create an admin user account (first-time setup)
- Navigate to Tenants in the admin panel
- Click Create Tenant
- Fill in the tenant details:
- Name: Your business name (e.g., “Optica Vision”)
- Domain: Subdomain for this tenant (e.g., “vision”)
- Email: Admin email for this tenant
The tenant will be accessible at
https://{domain}.optiflow.test (e.g., https://vision.optiflow.test)Access Your Tenant Portal
Visit your tenant’s subdomain:On first access, you’ll be prompted to:
- Create your tenant admin account
- Set up your first workspace
- Configure basic settings
Create Your First Workspace
A workspace represents a physical location or department:
- After logging into your tenant portal
- Navigate to Settings → Workspaces
- Click Create Workspace
- Enter workspace details:
- Name: Store location name (e.g., “Downtown Store”)
- Code: Short identifier (e.g., “DT01”)
- Description: Optional description
Configure Company Details
Set up your company information for invoices and documents:
- Go to Settings → Company Details
- Fill in your business information:
- Company name
- Tax ID (RNC for Dominican Republic)
- Address and contact information
- Upload your company logo
Create Your First Product
Add a product to your catalog:
- Navigate to Products
- Click Create Product
- Enter product details:
- Name: Product name (e.g., “Ray-Ban Aviator”)
- SKU: Stock keeping unit (e.g., “RB-3025”)
- Price: Selling price
- Cost: Purchase cost (for profit calculations)
- Stock Tracking: Enable to track inventory
Create Your First Invoice
Generate your first invoice:
- Go to Invoices → Create Invoice
- Select or create a customer
- Choose a document subtype (invoice type)
- Add line items by searching for products
- Set quantities and prices
- Add payment (optional - can be paid later)
- Click Create Invoice
- Automatically calculate subtotal, taxes, and total
- Deduct stock if inventory tracking is enabled
- Generate a PDF for printing or emailing
- Update the customer’s account balance
Stock is automatically deducted when an invoice is created. You can view stock movements in Inventory → Stock Movements.
What You’ve Accomplished
After completing this quickstart, you have:- ✅ Created a tenant with its own isolated database
- ✅ Set up a workspace for your store location
- ✅ Configured company details for invoicing
- ✅ Added your first product to the catalog
- ✅ Generated your first invoice with automatic stock deduction
Next Steps
Now that you have OptiFlow running, explore these features:Create Quotations
Learn how to create quotations and convert them to invoices
Manage Inventory
Track stock levels, movements, and transfers between workspaces
Configure Taxes
Set up tax rates and types for your jurisdiction
Import Contacts
Bulk import customers and suppliers from Excel/CSV
Common Tasks
Adding Team Members
- Go to Settings → Users
- Click Invite User
- Enter email and select a role:
- Owner: Full access to everything
- Admin: Manage settings and users
- Member: Regular user access
- User receives invitation email
- They accept and set their password
Setting Up Stock Transfers
Transfer inventory between workspaces:- Navigate to Inventory → Stock Transfers
- Click Create Transfer
- Select source and destination workspaces
- Add products and quantities
- Submit transfer
- Stock automatically updates in both locations
Creating Workflow Automations
Automate repetitive tasks:- Go to Automations
- Click Create Automation
- Use the visual builder to:
- Set up triggers (e.g., invoice created)
- Add actions (e.g., send WhatsApp notification)
- Test and activate your automation
Troubleshooting
Can't access tenant subdomain
Can't access tenant subdomain
Solution: Ensure your Restart your development server after changing
APP_URL in .env is set correctly and matches your Herd domain. For Laravel Herd, subdomains are automatically handled..env
.env:Stock not deducting from invoices
Stock not deducting from invoices
Solution: Verify that:
- Product has “Track Stock” enabled
- Initial stock was set for the product in the current workspace
- You’re viewing the correct workspace (check workspace selector)
PDF generation fails
PDF generation fails
Solution: Ensure the DomPDF package is installed and the
storage/ directory is writable:Queue jobs not processing
Queue jobs not processing
Solution: Ensure the queue worker is running. If using
composer run dev, it starts automatically. Otherwise:Advanced Features
Once you’re comfortable with the basics, explore these advanced capabilities:- Multi-Currency: Handle transactions in different currencies with exchange rates
- NCF Compliance: Configure Dominican tax receipt numbers (Números de Comprobante Fiscal)
- Workflow Stages: Track jobs through custom workflow stages
- Prescription Management: Manage optical prescriptions with clinical data
- Telegram/WhatsApp Notifications: Set up automated customer notifications
- API Integration: Build custom integrations using the REST API
Multi-Currency Setup
Configure multiple currencies and exchange rates
API Documentation
Integrate OptiFlow with other systems
Workflow Automation
Build custom workflows for your business
User Roles & Permissions
Set up fine-grained access control
Need help? Check out our comprehensive guides or explore the API reference.