Overview
OptiFlow’s multi-workspace feature enables you to manage multiple business entities, branches, or departments within a single OptiFlow account. Each workspace maintains complete data isolation while allowing seamless switching between different business contexts.Workspaces are perfect for managing multiple stores, franchises, or business units with separate inventories, customers, and financial records.
Key Capabilities
Data Isolation
Each workspace maintains its own products, contacts, invoices, and inventory completely separate from other workspaces.
Team Collaboration
Invite team members to specific workspaces with role-based access control (owner, admin, member).
Quick Switching
Switch between workspaces instantly without logging out, with your current workspace persisted in your session.
Workspace Settings
Configure workspace-specific settings, preferences, and business information for each entity.
Creating a Workspace
Workspaces can be created from your account dashboard:Workspace Properties
- Name: Display name for the workspace
- Slug: URL-friendly identifier (auto-generated)
- Code: Optional workspace code for identification
- Description: Brief description of the workspace
- Address & Phone: Business contact information
- Owner: User who created and owns the workspace
- Settings: JSON-encoded custom settings
- Status: Active/inactive flag
Managing Team Members
Adding Users to a Workspace
Invite team members to collaborate within a workspace:User Roles
- Owner
- Admin
- Member
- Full control over workspace
- Can delete workspace
- Can manage all members
- Assigned at workspace creation
Removing Team Members
Workspace Switching
Users can switch between workspaces they have access to:Your current workspace selection persists across sessions, so you’ll return to the same workspace when you log back in.
Workspace Scoping
OptiFlow automatically filters data based on the current workspace using theBelongsToWorkspace trait:
- Contacts (customers and suppliers)
- Products and ProductStock
- Invoices and Quotations
- Inventory movements
- Prescriptions and workflow jobs
Workspace-Specific Features
Document Subtypes
Each workspace can have preferred document subtypes:Workspace Invitations
Send email invitations to join a workspace:Use Cases
Multi-Store Retail Chain
Multi-Store Retail Chain
Create a workspace for each retail location. Each store manages its own inventory, customers, and sales while maintaining centralized oversight.
Franchise Management
Franchise Management
Set up separate workspaces for each franchise location with independent operations and reporting.
Department Separation
Department Separation
Organize different business departments (retail, wholesale, e-commerce) as separate workspaces.
Multi-Business Owner
Multi-Business Owner
Manage completely separate businesses from a single OptiFlow account.
Best Practices
Naming Convention
Use clear, descriptive names that identify the workspace’s purpose (e.g., “Downtown Store”, “Wholesale Division”).
Team Organization
Assign appropriate roles to team members based on their responsibilities and required access level.
Regular Audits
Periodically review workspace members and remove access for users who no longer need it.
API Reference
Key workspace model methods:addUser(User $user, string $role)- Add a user to the workspaceremoveUser(User $user)- Remove a user from the workspacehasUser(User $user)- Check if user has accessgetPreferredDocumentSubtype()- Get preferred document typemembers()- Relationship to workspace usersinvoices()- Get all invoices in workspaceprescriptions()- Get all prescriptions in workspace